Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for paste (0.17 sec)

  1. okhttp/src/main/kotlin/okhttp3/CacheControl.kt

       */
      @get:JvmName("noCache") val noCache: Boolean,
      /** If true, this response should not be cached. */
      @get:JvmName("noStore") val noStore: Boolean,
      /** The duration past the response's served date that it can be served without validation. */
      @get:JvmName("maxAgeSeconds") val maxAgeSeconds: Int,
      /**
       * The "s-maxage" directive is the max age for shared caches. Not to be confused with "max-age"
    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)
  2. okhttp/src/main/kotlin/okhttp3/internal/connection/RealRoutePlanner.kt

          ) ?: return null
    
        // If we coalesced our connection, remember the replaced connection's route. That way if the
        // coalesced connection later fails we don't waste a valid route.
        if (planToReplace != null) {
          nextRouteToTry = planToReplace.route
          planToReplace.closeQuietly()
        }
    
        connectionUser.connectionAcquired(result)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 12K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

          var low = 0
          var high = size
          var match: String? = null
          while (low < high) {
            var mid = (low + high) / 2
            // Search for a '\n' that marks the start of a value. Don't go back past the start of the
            // array.
            while (mid > -1 && this[mid] != '\n'.code.toByte()) {
              mid--
            }
            mid++
    
            // Now look for the ending '\n'.
            var end = 1
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  4. docs/recipes.md

    ---
    
    
    # Recipes
    
    We've written some recipes that demonstrate how to solve common problems with OkHttp. Read through them to learn about how everything works together. Cut-and-paste these examples freely; that's what they're for.
    
    ### Synchronous Get ([.kt][SynchronousGetKotlin], [.java][SynchronousGetJava])
    
    Download a file, print its headers, and print its response body as a string.
    
    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)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Hpack.kt

                headerNameIndex = staticIndex + 1
                if (headerNameIndex in 2..7) {
                  // Only search a subset of the static header table. Most entries have an empty value, so
                  // it's unnecessary to waste cycles looking at them. This check is built on the
                  // observation that the header entries we care about are in adjacent pairs, and we
                  // always know the first index of the pair.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 22.5K bytes
    - Viewed (1)
Back to top