Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for DelegatingSocketFactory (0.18 sec)

  1. okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt

    import okhttp3.CallEvent.ConnectionReleased
    import okhttp3.CallEvent.RequestFailed
    import okhttp3.CallEvent.ResponseFailed
    import okhttp3.DelegatingServerSocketFactory
    import okhttp3.DelegatingSocketFactory
    import okhttp3.MediaType
    import okhttp3.OkHttpClient
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Protocol.HTTP_1_1
    import okhttp3.RecordingEventListener
    import okhttp3.Request
    import okhttp3.RequestBody
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  2. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

        enableTls()
    
        server.enqueue(MockResponse(body = "abc"))
    
        val sslSocketFactory = client.sslSocketFactory
        val trustManager = client.x509TrustManager!!
    
        val delegatingSocketFactory =
          object : DelegatingSSLSocketFactory(sslSocketFactory) {
            override fun configureSocket(sslSocket: SSLSocket): SSLSocket {
              return object : DelegatingSSLSocket(sslSocket) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 27K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

        // Yield the first IP address so the second IP address completes first.
        val firstConnectLatch = CountDownLatch(1)
        val socketFactory =
          object : DelegatingSocketFactory(SocketFactory.getDefault()) {
            var first = true
    
            override fun createSocket(): Socket {
              if (first) {
                first = false
                firstConnectLatch.await()
              }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
Back to top