- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 34 for ConnectionSpec (0.14 sec)
-
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;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 16 09:39:51 UTC 2025 - 69.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TestTls13Request.kt
* available in JDK11 or Conscrypt. */ private val TLS_13 = ConnectionSpec .Builder(true) .cipherSuites(*TLS13_CIPHER_SUITES.toTypedArray()) .tlsVersions(TlsVersion.TLS_1_3) .build() private val TLS_12 = ConnectionSpec .Builder(ConnectionSpec.RESTRICTED_TLS) .tlsVersions(TlsVersion.TLS_1_2) .build() private fun testClient(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu May 22 14:39:30 UTC 2025 - 3.6K bytes - Viewed (0) -
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()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 6K bytes - Viewed (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/Clients.kt
Client( userAgent = "OkHttp", version = OkHttp.VERSION, enabled = ConnectionSpec.MODERN_TLS.cipherSuites!!.map { ianaSuites.fromJavaName(it.javaName) }, supported = ConnectionSpec.COMPATIBLE_TLS.cipherSuites!!.map { ianaSuites.fromJavaName(it.javaName) }, ) fun historicOkHttp(version: String): Client { val enabled =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 2.4K bytes - Viewed (0) -
samples/guide/src/main/java/okhttp3/recipes/CustomCipherSuites.java
CipherSuite.TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256, CipherSuite.TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384, CipherSuite.TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384); final ConnectionSpec spec = new ConnectionSpec.Builder(ConnectionSpec.MODERN_TLS) .cipherSuites(customCipherSuites.toArray(new CipherSuite[0])) .build(); X509TrustManager trustManager = defaultTrustManager();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Mar 14 21:57:42 UTC 2019 - 6.5K bytes - Viewed (0) -
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) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RetryConnectionTest.kt
} @Test fun someFallbacksSupported() { val sslV3 = ConnectionSpec .Builder(ConnectionSpec.MODERN_TLS) .tlsVersions(TlsVersion.SSL_3_0) .build() val routePlanner = factory.newRoutePlanner(client) val route = factory.newRoute() val connectionSpecs = listOf(ConnectionSpec.MODERN_TLS, ConnectionSpec.COMPATIBLE_TLS, sslV3) val enabledSocketTlsVersions = arrayOf(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 4.3K bytes - Viewed (0) -
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
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Aug 21 14:27:04 UTC 2025 - 3.2K bytes - Viewed (0) -
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 =
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 13.4K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Address.kt
* [proxy selector][proxySelector]. */ @get:JvmName("proxy") val proxy: Proxy?, protocols: List<Protocol>, connectionSpecs: List<ConnectionSpec>, /** * Returns this address's proxy selector. Only used if the proxy is null. If none of this * selector's proxies are reachable, a direct connection will be attempted. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 7.3K bytes - Viewed (0)