- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 35 for foo (0.12 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
) .hostnameVerifier(RecordingHostnameVerifier()) .build() val response = getResponse(newRequest("/foo")) assertContent("this response comes via HTTPS", response) val request = server.takeRequest() assertThat(request.requestLine).isEqualTo("GET /foo HTTP/1.1") } @Test fun connectViaHttpsReusingConnections() { connectViaHttpsReusingConnections(false) }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HttpUrlTest.kt
val url = parse("http://host/?foo[]=1&foo[]=2&foo[]=3") assertThat(url.querySize).isEqualTo(3) assertThat(url.queryParameterNames).isEqualTo(setOf("foo[]")) assertThat(url.queryParameterValue(0)).isEqualTo("1") assertThat(url.queryParameterValue(1)).isEqualTo("2") assertThat(url.queryParameterValue(2)).isEqualTo("3") assertThat(url.queryParameterValues("foo[]")).containsExactly("1", "2", "3") }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 67.9K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt
@Test fun unknownAuthParams() { val headers = Headers.Builder() .add("WWW-Authenticate", "Digest,,,, Basic ,,foo=bar,realm=\"myrealm\"") .build() val expectedAuthParams = mutableMapOf<String?, String>() expectedAuthParams["realm"] = "myrealm" expectedAuthParams["foo"] = "bar" assertThat(headers.parseChallenges("WWW-Authenticate")).containsExactly( Challenge("Digest", mapOf()),
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 16.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt
"Parsing: <http://example\t.\norg> against <http://example.org/foo/bar>", "Parsing: <http://f:0/c> against <http://example.org/foo/bar>", "Parsing: <http://f:00000000000000/c> against <http://example.org/foo/bar>", "Parsing: <http://f:\n/c> against <http://example.org/foo/bar>", "Parsing: <http://f:999999/c> against <http://example.org/foo/bar>", "Parsing: <http://192.0x00A80001> against <about:blank>",
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 4.7K bytes - Viewed (0) -
okhttp/src/test/resources/web-platform-test-urltestdata.txt
https://foo:80/ s:https h:foo port:80 p:/ ftp://foo:21/ s:ftp h:foo p:/ ftp://foo:80/ s:ftp h:foo port:80 p:/ gopher://foo:70/ s:gopher h:foo p:/ gopher://foo:443/ s:gopher h:foo port:443 p:/ ws://foo:80/ s:ws h:foo p:/ ws://foo:81/ s:ws h:foo port:81 p:/ ws://foo:443/ s:ws h:foo port:443 p:/ ws://foo:815/ s:ws h:foo port:815 p:/ wss://foo:80/ s:wss h:foo port:80 p:/ wss://foo:81/ s:wss h:foo port:81 p:/
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Dec 20 23:27:07 GMT 2023 - 14.3K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/internal/http/HttpHeaders.kt
* token68: * * ``` * WWW-Authenticate: Digest foo=bar * WWW-Authenticate: Digest foo= * ``` * * Similarly, the first line has one challenge and the second line has two challenges: * * ``` * WWW-Authenticate: Digest ,foo=bar * WWW-Authenticate: Digest ,foo * ``` */ fun Headers.parseChallenges(headerName: String): List<Challenge> {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 7.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt
""".trimIndent(), ) assertThat(verifier.verify("foo.com", session)).isTrue() assertThat(verifier.verify("a.foo.com", session)).isFalse() assertThat(verifier.verify("foo.com", session)).isTrue() assertThat(verifier.verify("a.foo.com", session)).isFalse() } @Test fun verifyMultipleCn() { // CN=foo.com, CN=bar.com, CN=花子.co.jp val session = session(
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 40.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt
fun writerEviction() { val headerBlock = headerEntries( "custom-foo", "custom-header", "custom-bar", "custom-header", "custom-baz", "custom-header", ) bytesIn.writeByte(0x40) // Literal indexed bytesIn.writeByte(0x0a) // Literal name (len = 10) bytesIn.writeUtf8("custom-foo") bytesIn.writeByte(0x0d) // Literal value (len = 13)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 38.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CookiesTest.kt
client = client.newBuilder() .cookieJar(JavaNetCookieJar(cookieManager)) .build() val urlWithIpAddress = urlWithIpAddress(server, "/path/foo") server.enqueue( MockResponse.Builder() .addHeader( "Set-Cookie: a=android; " + "expires=Fri, 31-Dec-9999 23:59:59 GMT; " + "path=/path; " +
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 13K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Thu Apr 11 22:09:35 GMT 2024 - 75.3K bytes - Viewed (0)