Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 155 for okHttpClient (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     * String hostname = "publicobject.com";
     * CertificatePinner certificatePinner = new CertificatePinner.Builder()
     *     .add(hostname, "sha256/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=")
     *     .build();
     * OkHttpClient client = OkHttpClient.Builder()
     *     .certificatePinner(certificatePinner)
     *     .build();
     *
     * Request request = new Request.Builder()
     *     .url("https://" + hostname)
     *     .build();
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt

      private var server: MockWebServer? = null
      private val listener = RecordingConnectionListener()
      private val handshakeCertificates = localhost()
    
      open val fastFallback: Boolean get() = true
    
      private var client: OkHttpClient =
        clientTestRule.newClientBuilder()
          .connectionPool(ConnectionPool(connectionListener = listener))
          .fastFallback(fastFallback)
          .build()
    
      @BeforeEach
      fun setUp(server: MockWebServer?) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. okhttp/src/test/java/okhttp3/FastFallbackTest.kt

      private lateinit var serverIpv4: MockWebServer
      private lateinit var serverIpv6: MockWebServer
    
      private val listener = RecordingEventListener()
      private lateinit var client: OkHttpClient
      private lateinit var url: HttpUrl
    
      /**
       * This is mutable and order matters. By default, it contains [IPv4, IPv6]. Tests may manipulate
       * it to prefer IPv6.
       */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

    import java.security.cert.CertificateFactory
    import java.security.cert.X509Certificate
    import javax.net.ssl.SSLSession
    import javax.security.auth.x500.X500Principal
    import okhttp3.FakeSSLSession
    import okhttp3.OkHttpClient
    import okhttp3.internal.canParseAsIpAddress
    import okhttp3.internal.platform.Platform.Companion.isAndroid
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HeldCertificate
    import org.junit.jupiter.api.Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 40.3K bytes
    - Viewed (0)
  5. okhttp-testing-support/src/main/kotlin/okhttp3/TestValueFactory.kt

          request = call.request(),
          connectTimeoutMillis = 10_000,
          readTimeoutMillis = 10_000,
          writeTimeoutMillis = 10_000,
        )
      }
    
      fun newRoutePlanner(
        client: OkHttpClient,
        address: Address = newAddress(),
      ): RealRoutePlanner {
        val call = RealCall(client, Request(address.url), forWebSocket = false)
        val chain = newChain(call)
        return RealRoutePlanner(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

      @Test
      fun setProtocolsWithoutHttp11() {
        assertFailsWith<IllegalArgumentException> {
          OkHttpClient.Builder()
            .protocols(Arrays.asList(Protocol.HTTP_2))
        }
      }
    
      @Test
      fun setProtocolsWithNull() {
        assertFailsWith<IllegalArgumentException> {
          OkHttpClient.Builder()
            .protocols(Arrays.asList(Protocol.HTTP_1_1, null))
        }
      }
    
      @Test
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt

    import mockwebserver3.RecordedRequest
    import mockwebserver3.SocketPolicy
    import mockwebserver3.SocketPolicy.KeepOpen
    import mockwebserver3.SocketPolicy.NoResponse
    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.OkHttpClientTestRule
    import okhttp3.Protocol
    import okhttp3.RecordingEventListener
    import okhttp3.RecordingHostnameVerifier
    import okhttp3.Request
    import okhttp3.Response
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/ConnectionReuseTest.kt

      val clientTestRule: OkHttpClientTestRule = OkHttpClientTestRule()
    
      private lateinit var server: MockWebServer
      private val handshakeCertificates = platform.localhostHandshakeCertificates()
      private var client: OkHttpClient = clientTestRule.newClient()
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
      }
    
      @Test
      fun connectionsAreReused() {
        server.enqueue(MockResponse(body = "a"))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  9. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

    import mockwebserver3.SocketPolicy.DisconnectDuringResponseBody
    import mockwebserver3.SocketPolicy.ShutdownServerAfterResponse
    import okhttp3.Headers
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Protocol
    import okhttp3.RecordingHostnameVerifier
    import okhttp3.Request
    import okhttp3.TestUtil.assumeNotWindows
    import okhttp3.testing.PlatformRule
    import okhttp3.tls.HandshakeCertificates
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CallTest.kt

        server.enqueue(MockResponse(body = "def"))
        server.enqueue(MockResponse(body = "ghi"))
        client =
          OkHttpClient.Builder()
            .connectionPool(client.connectionPool)
            .proxy(server.toProxyAddress())
            .build()
        executeSynchronously("/a").assertBody("abc")
        client =
          OkHttpClient.Builder()
            .connectionPool(client.connectionPool)
            .proxy(server.toProxyAddress())
            .build()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
Back to top