- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 42 for useHttps (0.14 sec)
-
okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt
handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .hostnameVerifier(RecordingHostnameVerifier()) .build() server.useHttps(handshakeCertificates.sslSocketFactory()) } /** A request body that slowly trickles bytes, expecting to not complete. */ private object SlowRequestBody : RequestBody() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 9.5K bytes - Viewed (0) -
okhttp/src/test/java/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))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallHandshakeTest.kt
.sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .hostnameVerifier(RecordingHostnameVerifier()) .build() server.useHttps(handshakeCertificates.sslSocketFactory()) defaultEnabledCipherSuites = handshakeCertificates.sslSocketFactory().defaultCipherSuites.toList() defaultSupportedCipherSuites =
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 11.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CallKotlinTest.kt
client = client.newBuilder() .sslSocketFactory( handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .build() server.useHttps(handshakeCertificates.sslSocketFactory()) } @RetryingTest(5) @Flaky fun testHeadAfterPut() { class ErringRequestBody : RequestBody() { override fun contentType(): MediaType {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 8.4K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http/CancelTest.kt
serverSocket.receiveBufferSize = SOCKET_BUFFER_SIZE return serverSocket } } if (connectionType != HTTP) { server.useHttps(handshakeCertificates.sslSocketFactory()) } server.start() client = clientTestRule.newClientBuilder() .socketFactory(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 9.9K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE) } @Test fun https() { val handshakeCertificates = platform.localhostHandshakeCertificates() server.useHttps(handshakeCertificates.sslSocketFactory(), false) server.enqueue(MockResponse().setBody("abc")) val url = server.url("/") val connection = url.toUrl().openConnection() as HttpsURLConnection
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 21.9K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
assertThat(server.protocols[0]).isEqualTo(Protocol.H2_PRIOR_KNOWLEDGE) } @Test fun https() { val handshakeCertificates = platform.localhostHandshakeCertificates() server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue( MockResponse.Builder() .body("abc") .build(), ) val url = server.url("/")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 23.5K bytes - Viewed (0) -
android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt
} localhostInsecureRequest() } finally { Security.removeProvider("GmsCore_OpenSSL") client.close() } } private fun localhostInsecureRequest() { server.useHttps(handshakeCertificates.sslSocketFactory()) server.enqueue(MockResponse()) val request = Request.Builder().url(server.url("/")).build() client.newCall(request).execute().use {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 27K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/ConnectionListenerTest.kt
handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .hostnameVerifier(RecordingHostnameVerifier()) .build() server!!.useHttps(handshakeCertificates.sslSocketFactory()) } } @Flaky // STDOUT logging enabled for test @Timeout(30) @Tag("Slow") class ConnectionListenerLegacyTest : ConnectionListenerTest() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 9.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/DuplexTest.kt
handshakeCertificates.sslSocketFactory(), handshakeCertificates.trustManager, ) .hostnameVerifier(RecordingHostnameVerifier()) .build() server.useHttps(handshakeCertificates.sslSocketFactory()) } private inner class DelayedRequestBody( private val delegate: RequestBody, delay: Long, timeUnit: TimeUnit, ) : RequestBody() {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 23.9K bytes - Viewed (0)