Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 31 - 36 of 36 for connectionSpec (0.16 seconds)

  1. okhttp/src/jvmTest/kotlin/okhttp3/OkHttpClientTest.kt

          builder.socketFactory(SSLSocketFactory.getDefault())
        }
      }
    
      @Test fun noSslSocketFactoryConfigured() {
        val client =
          OkHttpClient
            .Builder()
            .connectionSpecs(listOf(ConnectionSpec.CLEARTEXT))
            .build()
        assertFailsWith<IllegalStateException> {
          client.sslSocketFactory
        }
      }
    
      @Test fun nullHostileProtocolList() {
        val nullHostileProtocols =
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 13.4K bytes
    - Click Count (1)
  2. okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt

        client =
          client
            .newBuilder()
            .hostnameVerifier(RecordingHostnameVerifier())
            .connectionSpecs(
              // Attempt RESTRICTED_TLS then fall back to MODERN_TLS.
              listOf(
                ConnectionSpec.RESTRICTED_TLS,
                ConnectionSpec.MODERN_TLS,
              ),
            ).sslSocketFactory(
              suppressTlsFallbackClientSocketFactory(),
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Mar 15 09:02:18 GMT 2026
    - 146.5K bytes
    - Click Count (0)
  3. okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt

          OverrideParam.RetryOnConnectionFailure -> {
            enableTls()
            var first = true
            client =
              client
                .newBuilder()
                .connectionSpecs(listOf(ConnectionSpec.RESTRICTED_TLS, ConnectionSpec.MODERN_TLS))
                .eventListener(
                  object : EventListener() {
                    override fun secureConnectEnd(
                      call: Call,
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 11 02:37:00 GMT 2026
    - 28.8K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt

          client
            .newBuilder()
            .hostnameVerifier(
              RecordingHostnameVerifier(),
            ) // Attempt RESTRICTED_TLS then fall back to MODERN_TLS.
            .connectionSpecs(Arrays.asList(ConnectionSpec.RESTRICTED_TLS, ConnectionSpec.MODERN_TLS))
            .sslSocketFactory(
              suppressTlsFallbackClientSocketFactory(),
              handshakeCertificates.trustManager,
            ).build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 133.3K bytes
    - Click Count (0)
  5. docs/changelogs/changelog_3x.md

        configure OkHttp 3.13 to allow TLSv1 and TLSv1.1 connections:
    
        ```
        OkHttpClient client = new OkHttpClient.Builder()
            .connectionSpecs(Arrays.asList(ConnectionSpec.COMPATIBLE_TLS))
            .build();
        ```
    
     *  New: You can now access HTTP trailers with `Response.trailers()`. This method may only be called
        after the entire HTTP response body has been read.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Click Count (0)
  6. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/RealInterceptorChain.kt

          certificatePinner = useCertificatePinner,
          proxyAuthenticator = proxyAuthenticator,
          proxy = proxy,
          protocols = call.client.protocols,
          connectionSpecs = call.client.connectionSpecs,
          proxySelector = proxySelector,
        )
      }
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Mar 10 21:47:20 GMT 2026
    - 12.8K bytes
    - Click Count (0)
Back to Top