Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 28 for bar (0.16 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/java/okhttp3/HttpUrlTest.kt

        assertThat(url.queryParameterValues("bar")).isEqualTo(listOf(null as String?))
        assertThat(url.queryParameterValues("baz")).isEqualTo(listOf(null as String?))
      }
    
      @Test
      fun queryParametersWithEmptyValues() {
        val url = parse("http://host/?foo=&bar=&baz=")
        assertThat(url.querySize).isEqualTo(3)
        assertThat(url.queryParameterNames).containsExactlyInAnyOrder("foo", "bar", "baz")
    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)
  3. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        assertThat(call).contains("prompt=Bar")
        assertThat(call).contains("protocol=http")
        assertThat(call.lowercase(Locale.US))
          .contains("scheme=basic") // lowercase for the RI.
      }
    
      @Test
      fun allAttributesSetInProxyAuthenticationCallbacks() {
        val calls = authCallsForHeader("Proxy-Authenticate: Basic realm=\"Bar\"")
        assertThat(calls.size).isEqualTo(1)
    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)
  4. 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)
  5. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    C|/foo/bar  s:file p:/C:/foo/bar
    
    # This should fail
    /C|\\foo\\bar  s:file p:/C:/foo/bar
    //C|/foo/bar  s:file p:/C:/foo/bar
    //server/file  s:file h:server p:/file
    \\\\server\\file  s:file h:server p:/file
    /\\server/file  s:file h:server p:/file
    file:///foo/bar.txt  s:file p:/foo/bar.txt
    file:///home/me  s:file p:/home/me
    //  s:file p:/
    ///  s:file p:/
    ///test  s:file p:/test
    file://test  s:file h:test 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)
  6. okhttp/src/test/java/okhttp3/internal/tls/HostnameVerifierTest.kt

        // subject names. This causes the code to drop all alternative subjects.
        assertThat(verifier.verify("bar.com", session)).isFalse()
        assertThat(verifier.verify("www.bar.com", session)).isTrue()
        assertThat(verifier.verify("\u82b1\u5b50.bar.com", session)).isFalse()
        assertThat(verifier.verify("a.b.bar.com", session)).isFalse()
      }
    
      @Test fun subjectAltUsesLocalDomainAndIp() {
        // cat cert.cnf
        // [req]
    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)
  7. okhttp/src/test/java/okhttp3/CookiesTest.kt

                  ) = mapOf(
                    "COOKIE" to listOf("Bar=bar"),
                    "cooKIE2" to listOf("Baz=baz"),
                  )
                },
              ),
            )
            .build()
        server.enqueue(MockResponse())
        get(server.url("/"))
        val request = server.takeRequest()
        assertThat(request.headers["Cookie"]).isEqualTo("Bar=bar; Baz=baz")
        assertThat(request.headers["Cookie2"]).isNull()
    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)
  8. okhttp/src/test/java/okhttp3/internal/http2/HpackTest.kt

        checkEntry(entry, "custom-bar", "custom-header", 55)
        entry = writer.dynamicTable[tableLength - 2]!!
        checkEntry(entry, "custom-baz", "custom-header", 55)
      }
    
      @Test
      fun readerEviction() {
        val headerBlock =
          headerEntries(
            "custom-foo",
            "custom-header",
            "custom-bar",
            "custom-header",
            "custom-baz",
    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)
  9. 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)
  10. okhttp/src/test/java/okhttp3/HeadersJvmTest.kt

    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.6K bytes
    - Viewed (0)
Back to top