- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for useHttps (0.05 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
override fun createSocket( host: String, port: Int, localHost: InetAddress, localPort: Int, ): Socket? = null } if (useHttps) { server.useHttps(handshakeCertificates.sslSocketFactory()) client = client .newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(),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) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
assertThat(cache.writeAbortCount()).isEqualTo(0) assertThat(cache.requestCount()).isEqualTo(2) assertThat(cache.hitCount()).isEqualTo(1) } @Test fun secureResponseCaching() { server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue( MockResponse .Builder() .addHeader("Last-Modified: " + formatDate(-1, TimeUnit.HOURS))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
noRecoverWhenRetryOnConnectionFailureIsFalse() } @Test fun tlsHandshakeFailure_noFallbackByDefault() { platform.assumeNotBouncyCastle() server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue(MockResponse.Builder().failHandshake().build()) server.enqueue(MockResponse(body = "response that will never be received"))
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)