Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for en (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. docs/features/https.md

    release. For example, in OkHttp 2.2 we dropped support for SSL 3.0 in response to the [POODLE](https://googleonlinesecurity.blogspot.ca/2014/10/this-poodle-bites-exploiting-ssl-30.html) attack. And in OkHttp 2.3 we dropped support for [RC4](https://en.wikipedia.org/wiki/RC4#Security). As with your desktop web browser, staying up-to-date with OkHttp is the best way to stay secure.
    
    You can build your own connection spec with a custom set of TLS versions and cipher suites. For example, this...
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 24 00:16:30 GMT 2022
    - 10.5K bytes
    - Viewed (0)
  5. CHANGELOG.md

    [kotlin_1_9_21]: https://github.com/JetBrains/kotlin/releases/tag/v1.9.21
    [kotlin_1_9_23]: https://github.com/JetBrains/kotlin/releases/tag/v1.9.23
    [loom]: https://docs.oracle.com/en/java/javase/21/core/virtual-threads.html
    [okio_2_9_0]: https://square.github.io/okio/changelog/#version-290
    [okio_3_0_0]: https://square.github.io/okio/changelog/#version-300
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
  6. mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt

        server.enqueue(MockResponse.Builder().body("hello world").build())
        val url = server.url("/").toUrl()
        val connection = url.openConnection() as HttpURLConnection
        connection.setRequestProperty("Accept-Language", "en-US")
        val reader = BufferedReader(InputStreamReader(connection.inputStream, UTF_8))
        assertThat(connection.responseCode).isEqualTo(HttpURLConnection.HTTP_OK)
        assertThat(reader.readLine()).isEqualTo("hello world")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.5K bytes
    - Viewed (0)
  7. docs/recipes.md

          fun run() {
            val formBody = FormBody.Builder()
                .add("search", "Jurassic Park")
                .build()
            val request = Request.Builder()
                .url("https://en.wikipedia.org/w/index.php")
                .post(formBody)
                .build()
    
            client.newCall(request).execute().use { response ->
              if (!response.isSuccessful) throw IOException("Unexpected code $response")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Feb 18 08:52:22 GMT 2022
    - 40.2K bytes
    - Viewed (1)
  8. okhttp/src/main/resources/okhttp3/internal/publicsuffix/PublicSuffixDatabase.gz

    elasticbeanstalk.com elblag.pl elburg.museum elementor.cloud elementor.cool elk.pl elvendrell.museum elverum.no email emb.kw embaixada.st embetsu.hokkaido.jp embroidery.museum emerck emergency.aero emilia-romagna.it emiliaromagna.it emp.br empresa.bo emr.it en-root.fr en.it ena.gifu.jp encoreapi.com encr.app encyclopedic.museum endofinternet.net endofinternet.org endoftheinternet.org enebakk.no energy enf.br eng.br eng.pro engerdal.no engine.aero engineer engineer.aero engineering england.museum eniwa.hokkaido.jp...
    Others
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Dec 20 23:27:07 GMT 2023
    - 40.4K bytes
    - Viewed (0)
Back to top