Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Foo (0.13 sec)

  1. 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)
  2. 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)
  3. 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=&#x82b1;&#x5b50;.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)
  4. 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)
  5. 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)
  6. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

          "GET /a/deep/path?key=foo%20bar HTTP/1.1",
        )
        val requestUrl = request.requestUrl
        assertThat(requestUrl!!.scheme).isEqualTo("http")
        assertThat(requestUrl.host).isEqualTo(server.hostName)
        assertThat(requestUrl.port).isEqualTo(server.port)
        assertThat(requestUrl.encodedPath).isEqualTo("/a/deep/path")
        assertThat(requestUrl.queryParameter("key")).isEqualTo("foo bar")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.9K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/RequestTest.kt

        val requestWithoutCache = Request.Builder().url("http://localhost/api").build()
        val builtRequestWithoutCache = requestWithoutCache.newBuilder().url("http://localhost/api/foo").build()
        assertThat(builtRequestWithoutCache.url).isEqualTo(
          "http://localhost/api/foo".toHttpUrl(),
        )
        val requestWithCache =
          Request.Builder()
            .url("http://localhost/api")
            .build()
        // cache url object
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CookieTest.kt

        ).isFalse()
      }
    
      @Test fun defaultPath() {
        assertThat(parse("http://example.com/foo/bar".toHttpUrl(), "a=b")!!.path).isEqualTo("/foo")
        assertThat(parse("http://example.com/foo/".toHttpUrl(), "a=b")!!.path).isEqualTo("/foo")
        assertThat(parse("http://example.com/foo".toHttpUrl(), "a=b")!!.path).isEqualTo("/")
        assertThat(parse("http://example.com/".toHttpUrl(), "a=b")!!.path).isEqualTo("/")
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 24.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/InterceptorTest.kt

            .url(server.url("/"))
            .addHeader("Original-Header", "foo")
            .method("PUT", "abc".toRequestBody("text/plain".toMediaType()))
            .build()
        client.newCall(request).execute()
        val recordedRequest = server.takeRequest()
        assertThat(recordedRequest.body.readUtf8()).isEqualTo("ABC")
        assertThat(recordedRequest.headers["Original-Header"]).isEqualTo("foo")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CertificatePinnerTest.kt

        assertFailsWith<SSLPeerUnverifiedException> {
          certificatePinner.check("foo.example.co.uk", listOf(certB1.certificate))
        }
        assertFailsWith<SSLPeerUnverifiedException> {
          certificatePinner.check("foo.bar.example.co.uk", listOf(certB1.certificate))
        }
        assertFailsWith<SSLPeerUnverifiedException> {
          certificatePinner.check("foo.bar.baz.example.co.uk", listOf(certB1.certificate))
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.9K bytes
    - Viewed (0)
Back to top