- Sort Score
- Num 10 results
- Language All
Results 1 - 5 of 5 for supportsTlsExtensions (0.11 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/ConnectionSpec.kt
"will have no effect.", ) fun supportsTlsExtensions(supportsTlsExtensions: Boolean) = apply { require(tls) { "no TLS extensions for cleartext connections" } this.supportsTlsExtensions = supportsTlsExtensions } fun build(): ConnectionSpec = ConnectionSpec( tls, supportsTlsExtensions, cipherSuites, tlsVersions, )Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Jan 10 09:36:53 GMT 2026 - 13.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionSpecTest.kt
.tlsVersions(TlsVersion.TLS_1_2) .supportsTlsExtensions(true) .build() assertThat(tlsSpec.cipherSuites!!.toList()) .containsExactly(CipherSuite.TLS_RSA_WITH_RC4_128_MD5) assertThat(tlsSpec.tlsVersions!!.toList()) .containsExactly(TlsVersion.TLS_1_2) assertThat(tlsSpec.supportsTlsExtensions).isTrue() } @Test fun tlsBuilder_defaultCiphers() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 14.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/KotlinDeprecationErrorTest.kt
val tlsVersions: List<TlsVersion>? = connectionSpec.tlsVersions() val cipherSuites: List<CipherSuite>? = connectionSpec.cipherSuites() val supportsTlsExtensions: Boolean = connectionSpec.supportsTlsExtensions() } @Test @Disabled fun cookie() { val cookie: Cookie = Cookie.Builder().build() val name: String = cookie.name() val value: String = cookie.value()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 13.3K bytes - Click Count (0) -
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
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 06 16:58:16 GMT 2022 - 10.9K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/ConnectPlan.kt
private fun connectTls( sslSocket: SSLSocket, connectionSpec: ConnectionSpec, ) { val address = route.address var success = false try { if (connectionSpec.supportsTlsExtensions) { Platform.get().configureTlsExtensions(sslSocket, address.url.host, address.protocols) } // Force handshake. This can throw! sslSocket.startHandshake()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 19.3K bytes - Click Count (2)