Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Us (0.12 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/connection/RealConnection.kt

      }
    
      /**
       * Returns true if this connection's route has the same address as any of [candidates]. This
       * requires us to have a DNS address for both hosts, which only happens after route planning. We
       * can't coalesce connections that use a proxy, since proxies don't tell us the origin server's IP
       * address.
       */
      private fun routeMatchesAny(candidates: List<Route>): Boolean {
        return candidates.any {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

        val headers =
          Headers.Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\", charset=\"US-ASCII\"")
            .build()
        val expectedAuthParams = mutableMapOf<String?, String>()
        expectedAuthParams["realm"] = "protected area"
        expectedAuthParams["charset"] = "US-ASCII"
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(listOf(Challenge("Basic", expectedAuthParams)))
    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)
  3. docs/changelogs/changelog_4x.md

     *  New: Upgrade to Kotlin 1.3.61.
    
     *  New: Match any number of subdomains with two asterisks in `CertificatePinner`. For example,
        `**.squareup.com` matches `us-west.www.squareup.com`, `www.squareup.com` and `squareup.com`.
    
     *  New: Share threads more aggressively between OkHttp's HTTP/2 connections, connection pool,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 17 13:25:31 GMT 2024
    - 25.2K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     *
     *  * **Full domain name**: you may pin an exact domain name like `www.publicobject.com`. It won't
     *    match additional prefixes (`us-west.www.publicobject.com`) or suffixes (`publicobject.com`).
     *
     *  * **Any number of subdomains**: Use two asterisks to like `**.publicobject.com` to match any
     *    number of prefixes (`us-west.www.publicobject.com`, `www.publicobject.com`) including no
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 14.2K bytes
    - Viewed (1)
  5. 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)
  6. okhttp/src/main/kotlin/okhttp3/internal/-UtilJvm.kt

        }
      return if (includeDefaultPort || port != defaultPort(scheme)) {
        "$host:$port"
      } else {
        host
      }
    }
    
    /** Returns a [Locale.US] formatted [String]. */
    internal fun format(
      format: String,
      vararg args: Any,
    ): String {
      return String.format(Locale.US, format, *args)
    }
    
    @Throws(IOException::class)
    internal fun BufferedSource.readBomAsCharset(default: Charset): Charset {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  7. okhttp-tls/src/main/kotlin/okhttp3/tls/internal/der/Adapters.kt

                writer: DerWriter,
                value: String,
              ) = writer.writeUtf8(value)
            },
        )
    
      /**
       * Based on International Alphabet No. 5. Note that there are bytes that IA5 and US-ASCII
       * disagree on interpretation.
       *
       * TODO(jwilson): constrain to IA5 characters.
       */
      val IA5_STRING =
        BasicDerAdapter(
          name = "IA5 STRING",
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 15K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Headers.kt

      fun toMultimap(): Map<String, List<String>> {
        val result = TreeMap<String, MutableList<String>>(String.CASE_INSENSITIVE_ORDER)
        for (i in 0 until size) {
          val name = name(i).lowercase(Locale.US)
          var values: MutableList<String>? = result[name]
          if (values == null) {
            values = ArrayList(2)
            result[name] = values
          }
          values.add(value(i))
        }
        return result
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.5K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            // Assume the server won't send a TLS ServerHello until we send a TLS ClientHello. If
            // that happens, then we will have buffered bytes that are needed by the SSLSocket!
            // This check is imperfect: it doesn't tell us whether a handshake will succeed, just
            // that it will almost certainly fail because the proxy has sent unexpected data.
            if (source?.buffer?.exhausted() == false || sink?.buffer?.exhausted() == false) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  10. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

     *
     * See [RFC 7234, 5.2](https://tools.ietf.org/html/rfc7234#section-5.2).
     */
    class CacheControl internal constructor(
      /**
       * In a response, this field's name "no-cache" is misleading. It doesn't prevent us from caching
       * the response; it only means we have to validate the response with the origin server before
       * returning it. We can do this with a conditional GET.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 10K bytes
    - Viewed (0)
Back to top