- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 34 for enableTls (0.09 seconds)
-
android-test/src/androidDeviceTest/java/okhttp/android/test/OkHttpTest.kt
assertEquals(TlsVersion.TLS_1_3, response.handshake?.tlsVersion) assertEquals(Protocol.HTTP_2, response.protocol) } @Test fun testMockWebserverRequest() { enableTls() server.enqueue(MockResponse(body = "abc")) val request = Request.Builder().url(server.url("/")).build() val response = client.newCall(request).execute() response.use {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 29.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
) } @Test fun upgradeHttps() { // org.bouncycastle.tls.TlsNoCloseNotifyException: No close_notify alert received before connection closed platform.assumeNotBouncyCastle() enableTls(Protocol.HTTP_1_1) upgrade() } @Test fun upgradeRefusedByServer() { server.enqueue(MockResponse(body = "normal request")) val requestWithUpgrade = Request .Builder()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Feb 08 21:07:01 GMT 2026 - 9.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorOverridesTest.kt
} OverrideParam.SslSocketFactory -> { enableTls() overrideBadImplementation( override = Override.SslSocketFactoryOverride, testItFails = testItFails, goodValue = handshakeCertificates.sslSocketFactory(), ) } OverrideParam.X509TrustManager -> { enableTls() overrideBadImplementation(Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 02:37:00 GMT 2026 - 28.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/JSSETest.kt
// https://docs.oracle.com/en/java/javase/14/security/java-secure-socket-extension-jsse-reference-guide.html // TODO test jdk.tls.client.enableSessionTicketExtension // TODO check debugging information enableTls() server.enqueue(MockResponse(body = "abc")) val request = Request(server.url("/")) val response = client.newCall(request).execute() response.use { assertEquals(200, response.code)Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 5.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
} @Test fun tls() { enableTls() server.enqueue( MockResponse( headers = headersOf("Content-Type", "text/plain"), body = "abc", ), ) executeSynchronously("/").assertHandshake() } @Test fun tls_Async() { enableTls() server.enqueue( MockResponse(
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) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
} } private fun enableProtocol(protocol: Protocol) { enableTls() client = client .newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server.protocols = client.protocols } private fun enableTls() { client = client .newBuilder() .sslSocketFactory(
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Jan 11 11:54:15 GMT 2026 - 10.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/TrailersTest.kt
private fun enableProtocol(protocol: Protocol) { if (protocol == Protocol.HTTP_2) { enableTls() client = client .newBuilder() .protocols(listOf(protocol, Protocol.HTTP_1_1)) .build() server.protocols = client.protocols } } private fun enableTls() { val handshakeCertificates = platform.localhostHandshakeCertificates() client =
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 18.8K bytes - Click Count (0) -
ci/official/envs/rbe
# See the License for the specific language governing permissions and # limitations under the License. # ============================================================================== # Enables RBE as long as RBE is available for the selected platform. # The "selected" platform is considered to be # TFCI_BAZEL_TARGET_SELECTING_CONFIG_PREFIX. "Available" means there is
Created: Tue Apr 07 12:39:13 GMT 2026 - Last Modified: Sat Mar 28 04:33:01 GMT 2026 - 2.7K bytes - Click Count (0) -
okhttp-zstd/README.md
OkHttp Zstandard (zstd) Integration =================================== This module enables [Zstandard (zstd)][1] response compression in addition to Gzip, as long as the `Accept-Encoding` header is not otherwise set. Web servers must be configured to return zstd responses. Note that zstd is not used for sending requests. ```java OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(CompressionInterceptor(Zstd, Gzip)) .build();
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 11 05:41:23 GMT 2026 - 566 bytes - Click Count (1) -
android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java
assertBitEquals(prev, at.get()); assertTrue(at.compareAndSet(prev, x)); assertBitEquals(x, at.get()); prev = x; } } /** compareAndSet in one thread enables another waiting for value to succeed */ public void testCompareAndSetInMultipleThreads() throws Exception { AtomicDouble at = new AtomicDouble(1.0); Thread t = newStartedThread(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 7.3K bytes - Click Count (0)