Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 85 for toggle (0.13 sec)

  1. README.md

    security.
    
    OkHttp uses your platform's built-in TLS implementation. On Java platforms OkHttp also supports
    [Conscrypt][conscrypt], which integrates [BoringSSL](https://github.com/google/boringssl) with Java. OkHttp will use Conscrypt if it is
    the first security provider:
    
    ```java
    Security.insertProviderAt(Conscrypt.newProvider(), 1);
    ```
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

        MockWebServer().apply {
          useHttps(handshakeCertificates.sslSocketFactory(), false)
    
          enqueue(
            MockResponse()
              .setResponseCode(HTTP_MOVED_TEMP)
              .setHeader("Location", "https://www.google.com/robots.txt"),
          )
        }
    
      val clientCertificates =
        HandshakeCertificates.Builder()
          .addPlatformTrustedCertificates()
          .addInsecureHost(server.hostName)
          .build()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  3. native-image-tests/src/main/kotlin/okhttp3/SampleTest.kt

          assertThat(it.body.string()).isEqualTo("abc")
        }
      }
    
      @Test
      fun testExternalSite() {
        val client = clientRule.newClient()
    
        client.newCall(Request(url = "https://google.com/robots.txt".toHttpUrl())).execute().use {
          assertThat(it.code).isEqualTo(200)
        }
      }
    
      @ParameterizedTest
      @ArgumentsSource(SampleTestProvider::class)
      fun testParams(mode: String) {
      }
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  4. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

                  println("Negotiated " + sslSocket.applicationProtocol)
                }
              },
            )
            .build()
    
        val request =
          Request.Builder()
            .url("https://www.google.com")
            .build()
        client.newCall(request).execute().use { response ->
          assertThat(response.code).isEqualTo(200)
        }
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  5. regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java

        }
    
        OkHttpClient client = builder.build();
    
        sendRequest(client, "https://valid-isrgrootx1.letsencrypt.org/robots.txt");
    
        try {
          sendRequest(client, "https://google.com/robots.txt");
          if (androidMorEarlier) {
            // will pass with default CAs on N or later
            fail();
          }
        } catch (SSLHandshakeException sslhe) {
          assertTrue(androidMorEarlier);
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Nov 17 07:40:31 GMT 2020
    - 6.1K bytes
    - Viewed (0)
  6. docs/changelogs/changelog_2x.md

    OkHttp 2.x Change Log
    =====================
    
    ## Version 2.7.5
    
    _2016-02-25_
    
     *  Fix: Change the certificate pinner to always build full chains. This
        prevents a potential crash when using certificate pinning with the Google
        Play Services security provider.
    
    
    ## Version 2.7.4
    
    _2016-02-07_
    
     *  Fix: Don't crash when finding the trust manager if the Play Services (GMS)
        security provider is installed.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 26.6K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/Cookie.kt

     *
     * This class doesn't support additional attributes on cookies, like
     * [Chromium's Priority=HIGH extension][chromium_extension].
     *
     * [chromium_extension]: https://code.google.com/p/chromium/issues/detail?id=232693
     */
    @Suppress("NAME_SHADOWING")
    class Cookie private constructor(
      /** Returns a non-empty string with this cookie's name. */
      @get:JvmName("name") val name: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:12:05 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/RequestBodyCompression.java

    import okio.GzipSink;
    import okio.Okio;
    
    public final class RequestBodyCompression {
      /**
       * The Google API KEY for OkHttp recipes. If you're using Google APIs for anything other than
       * running these examples, please request your own client ID!
       *
       * https://console.developers.google.com/project
       */
      public static final String GOOGLE_API_KEY = "AIzaSyAx2WZYe0My0i-uGurpvraYJxO7XNbwiGs";
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat May 25 18:02:55 GMT 2019
    - 3.8K bytes
    - Viewed (0)
  9. android-test/README.md

    1. Add an Emulator named `pixel5`, if you don't already have one
    
    ```
    $ sdkmanager --install "system-images;android-29;google_apis;x86"
    $ echo "no" | avdmanager --verbose create avd --force --name "pixel5" --device "pixel" --package "system-images;android-29;google_apis;x86" --tag "google_apis" --abi "x86"
    ```
    
    2. Run an Emulator using Android Studio or from command line.
    
    ```
    $ emulator -no-window -no-snapshot-load @pixel5
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Feb 14 08:26:50 GMT 2023
    - 2.5K bytes
    - Viewed (0)
  10. docs/features/https.md

     * `CLEARTEXT` is an insecure configuration that is used for `http://` URLs.
    
    These loosely follow the model set in [Google Cloud Policies](https://cloud.google.com/load-balancing/docs/ssl-policies-concepts). We [track changes](../security/tls_configuration_history.md) to this policy.
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
Back to top