- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for enableTls (0.32 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/OpenJSSETest.kt
@StartStop private val server = MockWebServer() @BeforeEach fun setUp() { platform.assumeOpenJSSE() } @Test fun testTlsv13Works() { enableTls() server.enqueue(MockResponse(body = "abc")) val request = Request(server.url("/")) val response = client.newCall(request).execute() response.use { assertEquals(200, response.code)
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 3.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConnectionListenerTest.kt
"ConnectStart", "ConnectEnd", "ConnectionAcquired", "ConnectionReleased", ) } @Test @Throws(IOException::class) fun secondCallEventSequence() { enableTls() server.protocols = listOf(Protocol.HTTP_2, Protocol.HTTP_1_1) server.enqueue(MockResponse()) server.enqueue(MockResponse()) client .newCall(Request(server.url("/"))) .execute()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 18:33:48 UTC 2025 - 9.7K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
executeAndCheckUpgrade( upgradeRequest() .newBuilder() .post("Hello".toRequestBody()) .build(), ) } @Test fun upgradeHttps() { enableTls(Protocol.HTTP_1_1) upgrade() } @Test fun upgradeRefusedByServer() { server.enqueue(MockResponse(body = "normal request")) val requestWithUpgrade = Request .Builder()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 9.6K bytes - Viewed (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)Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 5.5K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/SessionReuseTest.kt
if (tlsVersion == TlsVersion.TLS_1_3.javaName) { assumeTrue(PlatformVersion.majorVersion != 8) } val sessionIds = mutableListOf<String>() enableTls() val tlsVersion = TlsVersion.forJavaName(tlsVersion) val spec = ConnectionSpec .Builder(ConnectionSpec.MODERN_TLS) .tlsVersions(tlsVersion) .build()
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Sat Nov 01 12:18:11 UTC 2025 - 5.9K bytes - Viewed (1) -
okhttp/src/jvmTest/kotlin/okhttp3/CallKotlinTest.kt
assertThat("abc").isEqualTo(response1.body.string()) assertThat("def").isEqualTo(response2.body.string()) } @Test @Flaky fun testMockWebserverRequest() { enableTls() server.enqueue(MockResponse(body = "abc")) val request = Request.Builder().url(server.url("/")).build() val response = client.newCall(request).execute() response.use {Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 8.4K bytes - Viewed (0) -
okhttp-brotli/README.md
OkHttp Brotli Implementation ============================ This module is an implementation of [Brotli][1] compression. It enables Brotli support in addition to tranparent Gzip support, provided Accept-Encoding is not set previously. Modern web servers must choose to return Brotli responses. n.b. It is not used for sending requests. ```java OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(BrotliInterceptor.INSTANCE) .build();
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 571 bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/DerivedGenerator.java
* collection generator. * * <p>{@code GwtTestSuiteGenerator} expects every {@code DerivedIterator} implementation to provide * a one-arg constructor accepting its inner generator as an argument. This requirement enables it * to generate source code (since GWT cannot use reflection to generate the suites). * * @author Chris Povirk */ @GwtCompatible public interface DerivedGenerator { TestSubjectGenerator<?> getInnerGenerator();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 1.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/DerivedGenerator.java
* collection generator. * * <p>{@code GwtTestSuiteGenerator} expects every {@code DerivedIterator} implementation to provide * a one-arg constructor accepting its inner generator as an argument. This requirement enables it * to generate source code (since GWT cannot use reflection to generate the suites). * * @author Chris Povirk */ @GwtCompatible public interface DerivedGenerator { TestSubjectGenerator<?> getInnerGenerator();Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 1.3K bytes - Viewed (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(ZstdInterceptor.INSTANCE) .build(); ```
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Thu Oct 30 21:39:59 UTC 2025 - 556 bytes - Viewed (1)