Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 40 for abcd (0.17 sec)

  1. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

        val multipart =
          """
          |--simple boundary
          |
          |abcd
          |--simple boundary
          |
          |efgh
          |--simple boundary--
          """.trimMargin()
            .replace("\n", "\r\n")
            .replace(Regex("(?m)abcd\r\n"), "abcd\n")
    
        val parts =
          MultipartReader(
            boundary = "simple boundary",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

    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)
  3. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

      }
    
      @Test
      fun hostnameLowercaseCharactersMappedDirectly() {
        assertThat(parse("http://abcd").host).isEqualTo("abcd")
        assertThat(parse("http://σ").host).isEqualTo("xn--4xa")
      }
    
      @Test
      fun hostnameUppercaseCharactersConvertedToLowercase() {
        assertThat(parse("http://ABCD").host).isEqualTo("abcd")
        assertThat(parse("http://Σ").host).isEqualTo("xn--4xa")
      }
    
      @Test
    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)
  4. okhttp/src/test/java/okhttp3/internal/HostnamesTest.kt

        val addressC = byteArrayOf(192.toByte(), 168.toByte(), 0, 1)
        assertThat(canonicalizeInetAddress(addressC)).isEqualTo(addressC)
    
        val addressD = decodeIpv6("abcd:ef01:2345:6789:abcd:ef01:2345:6789")!!
        assertThat(canonicalizeInetAddress(addressD)).isEqualTo(addressD)
    
        val addressE = decodeIpv6("2001:db8::1:0:0:1")!!
        assertThat(canonicalizeInetAddress(addressE)).isEqualTo(addressE)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 30 06:23:33 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  5. okhttp/src/test/resources/web-platform-test-urltestdata.txt

    foo:////://///  s:foo p:////://///
    c:/foo  s:c p:/foo
    //foo/bar  s:http h:foo p:/bar
    http://foo/path;a??e#f#g  s:http h:foo p:/path;a q:??e f:#f#g
    http://foo/abcd?efgh?ijkl  s:http h:foo p:/abcd q:?efgh?ijkl
    http://foo/abcd#foo?bar  s:http h:foo p:/abcd f:#foo?bar
    [61:24:74]:98  s:http h:example.org p:/foo/[61:24:74]:98
    http:[61:27]/:foo  s:http h:example.org p:/foo/[61:27]/:foo
    http://[1::2]:3:4
    http://2001::1
    http://2001::1]
    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/CacheTest.kt

        assertThat(response1.body.string()).isEqualTo("abcd")
        val response2 = get(server.url("/"))
        assertThat(response2.header("Alpha")).isEqualTo("α")
        assertThat(response2.header("β")).isEqualTo("Beta")
        assertThat(response2.header("Gamma")).isEqualTo("Γ")
        assertThat(response2.header("Δ")).isEqualTo("Delta")
        assertThat(response2.body.string()).isEqualTo("abcd")
      }
    
      @Test
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 108.6K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/RequestTest.kt

      }
    
      @Test
      fun byteArrayRange() {
        val contentType = "text/plain".toMediaType()
        val body: RequestBody = ".abcd".toByteArray().toRequestBody(contentType, 1, 3)
        assertThat(body.contentType()).isEqualTo(contentType)
        assertThat(body.contentLength()).isEqualTo(3)
        assertThat(bodyToHex(body)).isEqualTo("616263")
        assertThat(bodyToHex(body), "Retransmit body").isEqualTo("616263")
    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/internal/http2/HttpOverHttp2Test.kt

        protocol: Protocol,
        mockWebServer: MockWebServer,
      ) {
        setUp(protocol, mockWebServer)
        server.enqueue(MockResponse(body = "ABCDE"))
        val call = client.newCall(Request(server.url("/foo")))
        val response = call.execute()
        assertThat(response.body.string()).isEqualTo("ABCDE")
        assertThat(response.code).isEqualTo(200)
        assertThat(response.message).isEqualTo("")
        assertThat(response.protocol).isEqualTo(protocol)
    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)
  9. okhttp/src/test/java/okhttp3/ServerTruncatesRequestTest.kt

          MockResponse(
            body = "abc",
            socketPolicy = DoNotReadRequestBody(ErrorCode.NO_ERROR.httpCode),
          ),
        )
    
        val call =
          client.newCall(
            Request(
              url = server.url("/"),
              body = SlowRequestBody,
            ),
          )
    
        call.execute().use { response ->
          assertThat(response.body.string()).isEqualTo("abc")
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 9.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

          Headers.Builder()
            .add("WWW-Authenticate", "Other abc==")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(
            listOf(Challenge("Other", mapOf(null to "abc=="))),
          )
      }
    
      @Test fun token68AndAuthParams() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate", "Other abc==, realm=myrealm")
            .build()
    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)
Back to top