Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for en (0.14 sec)

  1. okhttp-dnsoverhttps/README.md

        .bootstrapDnsHosts(InetAddress.getByName("8.8.4.4"), InetAddress.getByName("8.8.8.8"))
        .build()
    
      val client = bootstrapClient.newBuilder().dns(dns).build()
    ```
    
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Dec 17 15:34:10 GMT 2023
    - 740 bytes
    - Viewed (4)
  2. okhttp/src/main/kotlin/okhttp3/internal/-HostnamesCommon.kt

    }
    
    /**
     * Returns the canonical address for [address]. If [address] is an IPv6 address that is mapped to an
     * IPv4 address, this returns the IPv4-mapped address. Otherwise, this returns [address].
     *
     * https://en.wikipedia.org/wiki/IPv6#IPv4-mapped_IPv6_addresses
     */
    internal fun canonicalizeInetAddress(address: ByteArray): ByteArray {
      return when {
        isMappedIpv4Address(address) -> address.sliceArray(12 until 16)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  3. okhttp/src/test/resources/okhttp3/internal/idn/rfc3454.C.1.2.txt

       00A0; NO-BREAK SPACE
       1680; OGHAM SPACE MARK
       2000; EN QUAD
       2001; EM QUAD
       2002; EN SPACE
       2003; EM SPACE
       2004; THREE-PER-EM SPACE
       2005; FOUR-PER-EM SPACE
       2006; SIX-PER-EM SPACE
       2007; FIGURE SPACE
       2008; PUNCTUATION SPACE
       2009; THIN SPACE
       200A; HAIR SPACE
       200B; ZERO WIDTH SPACE
       202F; NARROW NO-BREAK SPACE
       205F; MEDIUM MATHEMATICAL SPACE
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 409 bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/ResponseBody.kt

       */
      @Throws(IOException::class)
      fun byteString() = commonByteString()
    
      /**
       * Returns the response as a character stream.
       *
       * If the response starts with a
       * [Byte Order Mark (BOM)](https://en.wikipedia.org/wiki/Byte_order_mark), it is consumed and
       * used to determine the charset of the response bytes.
       *
       * Otherwise if the response has a `Content-Type` header that specifies a charset, that is used
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/HttpUrlTest.kt

        // mongolian vowel separator
        assertThat(parse("http://h/\u180e").encodedPath).isEqualTo("/%E1%A0%8E")
        // en quad
        assertThat(parse("http://h/\u2000").encodedPath).isEqualTo("/%E2%80%80")
        // em quad
        assertThat(parse("http://h/\u2001").encodedPath).isEqualTo("/%E2%80%81")
        // en space
        assertThat(parse("http://h/\u2002").encodedPath).isEqualTo("/%E2%80%82")
        // em space
    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)
  6. okhttp/src/test/java/okhttp3/MediaTypeJvmTest.kt

        )
        assertEquals(
          "ISO-8859-1",
          charset.charset(Charsets.US_ASCII)!!.name(),
        )
      }
    
      @Test fun testTurkishDotlessIWithEnUs() {
        withLocale(Locale("en", "US")) {
          val mediaType = parse("IMAGE/JPEG")
          assertEquals("image", mediaType.type)
          assertEquals("jpeg", mediaType.subtype)
        }
      }
    
      @Test fun testTurkishDotlessIWithTrTr() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. docs/features/connections.md

     * They don't specify whether a specific proxy server should be used or how to authenticate with that proxy server.
    
    They're also concrete: each URL identifies a specific path (like `/square/okhttp`) and query (like `?q=sharks&lang=en`). Each webserver hosts many URLs.
    
    ### [Addresses](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-address/)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Feb 21 03:33:59 GMT 2022
    - 5.4K bytes
    - Viewed (0)
  8. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        server.enqueue(MockResponse().setBody("hello world"))
        val url = server.url("/").toUrl()
        val connection = url.openConnection() as HttpURLConnection
        connection.setRequestProperty("Accept-Language", "en-US")
        val inputStream = connection.inputStream
        val reader = BufferedReader(InputStreamReader(inputStream, StandardCharsets.UTF_8))
        assertThat(connection.getResponseCode()).isEqualTo(HttpURLConnection.HTTP_OK)
    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)
  9. okhttp/src/test/java/okhttp3/CallTest.kt

        Thread.sleep(10) // Make sure the timestamps are unique.
        val cacheHit =
          executeSynchronously(
            "/",
            "Accept-Language",
            "en-US",
            "Accept-Charset",
            "UTF-8",
          )
    
        // Check the merged response. The request is the application's original request.
        cacheHit.assertCode(200)
          .assertBody("A")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 142.5K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/CacheTest.kt

            .addHeader("Accept-Language", "en-US")
            .build()
        val response1 = client.newCall(request1).execute()
        assertThat(response1.body.string()).isEqualTo("A")
        val request2 =
          Request.Builder()
            .url(url)
            .addHeader("Accept-Language", "fr-CA, fr-FR")
            .addHeader("Accept-Language", "en-US")
            .build()
    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)
Back to top