Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 34 for connectionSpec (0.05 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/internal.kt

    internal fun cacheGet(
      cache: Cache,
      request: Request,
    ): Response? = cache.get(request)
    
    internal fun applyConnectionSpec(
      connectionSpec: ConnectionSpec,
      sslSocket: SSLSocket,
      isFallback: Boolean,
    ) = connectionSpec.apply(sslSocket, isFallback)
    
    internal fun ConnectionSpec.effectiveCipherSuites(socketEnabledCipherSuites: Array<String>): Array<String> =
      if (cipherSuitesAsString != null) {
        // 3 options here for ordering
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri May 30 21:28:20 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  2. docs/features/https.md

    By default, OkHttp will attempt a `MODERN_TLS` connection.  However by configuring the client connectionSpecs you can allow a fall back to `COMPATIBLE_TLS` connection if the modern configuration fails.
    
    ```java
    OkHttpClient client = new OkHttpClient.Builder()
        .connectionSpecs(Arrays.asList(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS))
        .build();
    ```
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Dec 24 00:16:30 UTC 2022
    - 10.5K bytes
    - Viewed (0)
  3. okhttp/api/android/okhttp.api

    }
    
    public final class okhttp3/ConnectionSpec {
    	public static final field CLEARTEXT Lokhttp3/ConnectionSpec;
    	public static final field COMPATIBLE_TLS Lokhttp3/ConnectionSpec;
    	public static final field Companion Lokhttp3/ConnectionSpec$Companion;
    	public static final field MODERN_TLS Lokhttp3/ConnectionSpec;
    	public static final field RESTRICTED_TLS Lokhttp3/ConnectionSpec;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/SocketChannelTest.kt

                if (socketMode.socketMode == Channel) {
                  socketFactory(ChannelSocketFactory())
                }
    
                connectionSpecs(
                  listOf(
                    ConnectionSpec
                      .Builder(ConnectionSpec.COMPATIBLE_TLS)
                      .tlsVersions(socketMode.tlsVersion)
                      .supportsTlsExtensions(socketMode.tlsExtensionMode == STANDARD)
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RetryTlsHandshake.kt

        e is ProtocolException -> false
    
        // If there was an interruption or timeout (SocketTimeoutException), don't recover.
        // For the socket connect timeout case we do not try the same host with a different
        // ConnectionSpec: we assume it is unreachable.
        e is InterruptedIOException -> false
    
        // If the problem was a CertificateException from the X509TrustManager, do not retry.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.7K bytes
    - Viewed (0)
  6. docs/changelogs/upgrading_to_okhttp_4.md

       noCache, noStore, noTransform, onlyIfCached, sMaxAgeSeconds
     * **Challenge**: authParams, charset, realm, scheme
     * **CipherSuite**: javaName
     * **ConnectionSpec**: cipherSuites, supportsTlsExtensions, tlsVersions
     * **Cookie**: domain, expiresAt, hostOnly, httpOnly, name, path, persistent, value
     * **Dispatcher**: executorService
     * **FormBody**: size
     * **Handshake**: cipherSuite, localCertificates, localPrincipal, peerCertificates, peerPrincipal,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Feb 06 16:58:16 UTC 2022
    - 10.9K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

          this.x509TrustManagerOrNull = trustManager
        }
    
        fun connectionSpecs(connectionSpecs: List<ConnectionSpec>) =
          apply {
            if (connectionSpecs != this.connectionSpecs) {
              this.routeDatabase = null
            }
    
            this.connectionSpecs = connectionSpecs.toImmutableList()
          }
    
        /**
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon May 05 16:01:00 UTC 2025
    - 51.7K bytes
    - Viewed (0)
  8. okhttp/src/androidMain/baseline-prof.txt

    HSPLokhttp3/ConnectionSpec$Builder;-><init>(Lokhttp3/ConnectionSpec;)V
    HSPLokhttp3/ConnectionSpec$Builder;-><init>(Z)V
    HSPLokhttp3/ConnectionSpec$Builder;->build()Lokhttp3/ConnectionSpec;
    HSPLokhttp3/ConnectionSpec$Builder;->cipherSuites([Ljava/lang/String;)Lokhttp3/ConnectionSpec$Builder;
    HSPLokhttp3/ConnectionSpec$Builder;->cipherSuites([Lokhttp3/CipherSuite;)Lokhttp3/ConnectionSpec$Builder;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 127.9K bytes
    - Viewed (0)
  9. 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(),
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 146.6K bytes
    - Viewed (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

      internal fun planConnectToRoute(
        route: Route,
        routes: List<Route>? = null,
      ): ConnectPlan {
        if (route.address.sslSocketFactory == null) {
          if (ConnectionSpec.CLEARTEXT !in route.address.connectionSpecs) {
            throw UnknownServiceException("CLEARTEXT communication not enabled for client")
          }
    
          val host = route.address.url.host
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed May 28 23:28:25 UTC 2025
    - 12K bytes
    - Viewed (0)
Back to top