- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 5,253 for http2 (0.17 sec)
-
src/test/java/jcifs/http/HandlerTest.java
} }; handlers.put("http", httpHandler); handlers.put("https", httpsHandler); } @Test void testGetDefaultPort() { // This test verifies that the handler returns the correct default HTTP port. assertEquals(Handler.DEFAULT_HTTP_PORT, handler.getDefaultPort(), "Default port should be 80 for HTTP."); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt
assertThat(parse("http:\\/host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:/\\host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:\\\\host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:///host/path")) .isEqualTo(parse("http://host/path")) assertThat(parse("http:\\//host/path")) .isEqualTo(parse("http://host/path"))
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon Aug 04 07:38:48 UTC 2025 - 69.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
java.net.Authenticator.setDefault(null) System.clearProperty("proxyHost") System.clearProperty("proxyPort") System.clearProperty("http.proxyHost") System.clearProperty("http.proxyPort") System.clearProperty("https.proxyHost") System.clearProperty("https.proxyPort") if (cache != null) { cache!!.delete() } } @Test fun requestHeaders() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jun 21 20:36:35 UTC 2025 - 133.2K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/compare/OkHttpClientTest.java
import org.junit.Test; import org.junit.runner.RunWith; /** * OkHttp. * * https://square.github.io/okhttp/ */ @RunWith(AndroidJUnit4.class) public class OkHttpClientTest { @Test public void get() throws IOException { OkHttpClient client = new OkHttpClient(); Request request = new Request.Builder() .url("https://google.com/robots.txt") .build();
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Nov 14 17:38:22 UTC 2020 - 1.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt
* limitations under the License. */ package okhttp3.internal.http import okhttp3.OkHttpClient import okhttp3.Protocol import okhttp3.Request object ExternalHttp2Example { @JvmStatic fun main(args: Array<String>) { val client = OkHttpClient .Builder() .protocols(listOf(Protocol.HTTP_2, Protocol.HTTP_1_1)) .build() val call = client.newCall(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 1.4K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ConscryptTest.kt
val request = Request.Builder().url("https://mozilla.org/robots.txt").build() client.newCall(request).execute().use { assertThat(it.protocol).isEqualTo(Protocol.HTTP_2) assertThat(it.handshake!!.tlsVersion).isEqualTo(TlsVersion.TLS_1_3) } } @Test @Disabled fun testGoogle() { assumeNetwork() val request = Request.Builder().url("https://google.com/robots.txt").build()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3.1K bytes - Viewed (0) -
okhttp-zstd/src/test/java/okhttp3/zstd/ZstdInterceptorTest.kt
class ZstdInterceptorTest { val zstdInterceptor = CompressionInterceptor(Zstd, Gzip) @Test fun testDecompressZstd() { val s = "hello zstd world".encodeUtf8().zstdCompress() val response = response("https://example.com/", s) { header("Content-Encoding", "zstd") } val decompressed = zstdInterceptor.decompress(response) assertThat(decompressed.header("Content-Encoding")).isNull()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Aug 01 06:04:22 UTC 2025 - 4.8K bytes - Viewed (0) -
regression-test/src/androidTest/java/okhttp/regression/LetsEncryptTest.java
} OkHttpClient client = builder.build(); sendRequest(client, "https://valid-isrgrootx1.letsencrypt.org/robots.txt"); try { sendRequest(client, "https://google.com/robots.txt"); if (androidMorEarlier) { // will pass with default CAs on N or later fail(); }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Tue Nov 17 07:40:31 UTC 2020 - 6.1K bytes - Viewed (0) -
docs/changelogs/changelog_1x.md
## Version 1.1.1 _2013-06-23_ * Fix: ClassCastException when caching responses that were redirected from HTTP to HTTPS. ## Version 1.1.0 _2013-06-15_ * Fix: Connection reuse was broken for most HTTPS connections due to a bug in the way the hostname verifier was selected. * Fix: Locking bug in SpdyConnection.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 6.4K bytes - Viewed (0) -
okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt
/** * [DNS over HTTPS implementation][doh_spec]. * * > A DNS API client encodes a single DNS query into an HTTP request * > using either the HTTP GET or POST method and the other requirements * > of this section. The DNS API server defines the URI used by the * > request through the use of a URI Template. * * [doh_spec]: https://tools.ietf.org/html/draft-ietf-doh-dns-over-https-13 */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat May 10 11:15:14 UTC 2025 - 8.6K bytes - Viewed (0)