Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getWithCustomSocketFactory (0.14 sec)

  1. android-test/src/androidTest/java/okhttp/android/test/alpn/AlpnOverrideTest.kt

            sslSocket.sslParameters = parameters
          }
    
          return sslSocket
        }
      }
    
      var client = OkHttpClient()
    
      @Test
      fun getWithCustomSocketFactory() {
        client =
          client.newBuilder()
            .sslSocketFactory(CustomSSLSocketFactory(client.sslSocketFactory), client.x509TrustManager!!)
            .connectionSpecs(
              listOf(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/sni/SniOverrideTest.kt

    import org.junit.jupiter.api.Test
    
    /**
     * Tests for SNI overriding on Android.
     */
    @Tag("Remote")
    class SniOverrideTest {
      var client =
        OkHttpClient.Builder()
          .build()
    
      @Test
      fun getWithCustomSocketFactory() {
        assumeTrue(Build.VERSION.SDK_INT >= 24)
    
        class CustomSSLSocketFactory(
          delegate: SSLSocketFactory,
        ) : DelegatingSSLSocketFactory(delegate) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.6K bytes
    - Viewed (0)
Back to top