Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 11 - 20 of 25 for ConnectionSpec (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs/features/https.md

    ```java
    ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS)
        .tlsVersions(TlsVersion.TLS_1_2)
        .cipherSuites(
              CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256,
              CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256,
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt

        }
    
        val sessionIds = mutableListOf<String>()
    
        enableTls()
    
        val tlsVersion = TlsVersion.forJavaName(tlsVersion)
        val spec =
          ConnectionSpec
            .Builder(ConnectionSpec.MODERN_TLS)
            .tlsVersions(tlsVersion)
            .build()
    
        var reuseSession = false
    
        val sslContext = handshakeCertificates.sslContext()
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Sat Nov 01 12:18:11 GMT 2025
    - 5.9K bytes
    - Click Count (1)
  3. okhttp/api/jvm/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;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.2K bytes
    - Click Count (0)
  4. android-test/src/test/kotlin/okhttp/android/test/AndroidLoggingTest.kt

    import android.util.Log
    import assertk.assertThat
    import assertk.assertions.containsExactly
    import assertk.assertions.containsOnly
    import assertk.assertions.isNull
    import java.net.UnknownHostException
    import okhttp3.ConnectionSpec
    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import okhttp3.internal.platform.AndroidPlatform
    import okhttp3.logging.HttpLoggingInterceptor
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Thu Aug 21 14:27:04 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  5. 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;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Nov 05 18:28:35 GMT 2025
    - 70.3K bytes
    - Click Count (0)
  6. 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 Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 13.4K bytes
    - Click Count (1)
  7. 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;
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Mon Dec 30 23:28:56 GMT 2024
    - 127.9K bytes
    - Click Count (1)
  8. 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.
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

     */
    package okhttp3.internal.connection
    
    import java.io.IOException
    import java.net.HttpURLConnection
    import java.net.Socket
    import java.net.UnknownServiceException
    import okhttp3.Address
    import okhttp3.ConnectionSpec
    import okhttp3.HttpUrl
    import okhttp3.Protocol
    import okhttp3.Request
    import okhttp3.Response
    import okhttp3.Route
    import okhttp3.internal.USER_AGENT
    import okhttp3.internal.canReuseConnectionFor
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 12K bytes
    - Click Count (0)
  10. okhttp/src/commonJvmAndroid/kotlin/okhttp3/OkHttpClient.kt

      }
    
      companion object {
        internal val DEFAULT_PROTOCOLS = immutableListOf(HTTP_2, HTTP_1_1)
    
        internal val DEFAULT_CONNECTION_SPECS =
          immutableListOf(
            ConnectionSpec.MODERN_TLS,
            ConnectionSpec.CLEARTEXT,
          )
      }
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Tue Oct 07 21:55:03 GMT 2025
    - 51.4K bytes
    - Click Count (0)
Back to Top