Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 99 for doesn (0.13 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

     * stale).
     */
    class CacheStrategy internal constructor(
      /** The request to send on the network, or null if this call doesn't use the network. */
      val networkRequest: Request?,
      /** The cached response to return or validate; or null if this call doesn't use a cache. */
      val cacheResponse: Response?,
    ) {
      class Factory(
        private val nowMillis: Long,
        internal val request: Request,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:24:48 GMT 2024
    - 12K bytes
    - Viewed (0)
  2. okhttp-idna-mapping-table/src/main/kotlin/okhttp3/internal/idn/GenerateIdnaMappingTableCode.kt

              data.sections.escapeDataString(),
              data.ranges.escapeDataString(),
              data.mappings.escapeDataString(),
            )
            .build(),
        )
        .build()
    }
    
    /**
     * KotlinPoet doesn't really know what to do with a string containing NUL, BEL, DEL, etc. We also
     * don't want to perform `trimMargin()` at runtime.
     */
    fun String.escapeDataString(): String {
      return buildString {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  3. okhttp-tls/src/main/kotlin/okhttp3/tls/HeldCertificate.kt

              else -> {
                throw IllegalArgumentException("unexpected type: $label")
              }
            }
          }
          require(certificatePem != null) { "string does not include a certificate" }
          require(pkcs8Base64 != null) { "string does not include a private key" }
    
          return decode(certificatePem, pkcs8Base64)
        }
    
        private fun decode(
          certificatePem: String,
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 21.6K bytes
    - Viewed (1)
  4. 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)
  5. okhttp/src/main/kotlin/okhttp3/Request.kt

        open fun headers(headers: Headers) = commonHeaders(headers)
    
        /**
         * Sets this request's `Cache-Control` header, replacing any cache control headers already
         * present. If [cacheControl] doesn't define any directives, this clears this request's
         * cache-control headers.
         */
        open fun cacheControl(cacheControl: CacheControl): Builder = commonCacheControl(cacheControl)
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/DispatcherTest.kt

        assertThat(dispatcher.runningCalls())
          .containsExactlyInAnyOrder(a1, a2)
        assertThat(dispatcher.queuedCalls()).isEmpty()
    
        // Cancel some calls. That doesn't impact running or queued.
        a2.cancel()
        a3.cancel()
        assertThat(dispatcher.runningCalls())
          .containsExactlyInAnyOrder(a1, a2)
        assertThat(dispatcher.queuedCalls()).isEmpty()
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Apr 05 03:30:42 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/RealWebSocket.kt

        pongQueue.add(payload)
        runWriter()
        receivedPingCount++
      }
    
      @Synchronized override fun onReadPong(payload: ByteString) {
        // This API doesn't expose pings.
        receivedPongCount++
        awaitingPong = false
      }
    
      override fun onReadClose(
        code: Int,
        reason: String,
      ) {
        require(code != -1)
    
        synchronized(this) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 01 14:21:25 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * this client silently recovers from the following problems:
         *
         * * **Unreachable IP addresses.** If the URL's host has multiple IP addresses,
         *   failure to reach any individual IP address doesn't fail the overall request. This can
         *   increase availability of multi-homed services.
         *
         * * **Stale pooled connections.** The [ConnectionPool] reuses sockets
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:21:33 GMT 2024
    - 52K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt

          .contains("HEADERS       END_HEADERS")
        // While MockWebServer waits to read the client's HEADERS frame before sending the response, it
        // doesn't wait to read the client's DATA frame and may send a DATA frame before the client
        // does. So we can't assume the client's empty DATA will be logged first.
        assertThat(countFrames(logs, "FINE: >> 0x00000003     0 DATA          END_STREAM"))
          .isEqualTo(1)
    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)
  10. okhttp/src/main/kotlin/okhttp3/HttpUrl.kt

     * component must escape all of its `?` characters, otherwise it could be interpreted as the
     * start of the URL's query. But within the query and fragment components, the `?` character
     * doesn't delimit anything and doesn't need to be escaped.
     *
     * ```java
     * HttpUrl url = HttpUrl.parse("http://who-let-the-dogs.out").newBuilder()
     *     .addPathSegment("_Who?_")
     *     .query("_Who?_")
     *     .fragment("_Who?_")
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 09 12:33:05 GMT 2024
    - 63.5K bytes
    - Viewed (1)
Back to top