Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 44 for RFC (0.11 sec)

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

          .body(RealResponseBody(contentType, contentLength, cacheWritingSource.buffer()))
          .build()
      }
    
      companion object {
        /** Combines cached headers with a network headers as defined by RFC 7234, 4.3.4. */
        private fun combine(
          cachedHeaders: Headers,
          networkHeaders: Headers,
        ): Headers {
          val result = Headers.Builder()
    
          for (index in 0 until cachedHeaders.size) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 10.2K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/CertificatePinner.kt

     * This class currently pins a certificate's Subject Public Key Info as described on
     * [Adam Langley's Weblog][langley]. Pins are either base64 SHA-256 hashes as in
     * [HTTP Public Key Pinning (HPKP)][rfc_7469] or SHA-1 base64 hashes as in Chromium's
     * [static certificates][static_certificates].
     *
     * ## Setting up Certificate Pinning
     *
    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)
  3. okhttp/src/main/kotlin/okhttp3/Cache.kt

     *
     * The best way to improve the cache hit rate is by configuring the web server to return cacheable
     * responses. Although this client honors all [HTTP/1.1 (RFC 7234)][rfc_7234] cache headers, it
     * doesn't cache partial responses.
     *
     * ## Force a Network Response
     *
     * In some situations, such as after a user clicks a 'refresh' button, it may be necessary to skip
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Wed Apr 10 19:46:48 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  4. okhttp/src/main/kotlin/okhttp3/internal/cache/CacheStrategy.kt

            val delta = expires.time - servedMillis
            return if (delta > 0L) delta else 0L
          }
    
          if (lastModified != null && cacheResponse.request.url.query == null) {
            // As recommended by the HTTP RFC and implemented in Firefox, the max age of a document
            // should be defaulted to 10% of the document's age at the time it was served. Default
            // expiration dates aren't used for URIs containing a query.
    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)
  5. okhttp/src/test/java/okhttp3/internal/idn/StringprepReader.kt

    import okio.Path
    import okio.buffer
    import okio.use
    
    class StringprepTablesReader(
      private val fileSystem: FileSystem,
    ) {
      /**
       * Returns a [Stringprep] that uses the tables of Nameprep ([RFC 3491]).
       *
       * [RFC 3491]: https://datatracker.ietf.org/doc/html/rfc3491
       */
      fun readNameprep(base: Path): Stringprep {
        val unassigned = readCodePointSet(base / "rfc3454.A.1.txt")
        val mapping =
    Plain Text
    - Registered: Fri Mar 29 11:42:11 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.8K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/SocksProxy.kt

    import okio.buffer
    import okio.sink
    import okio.source
    import okio.use
    
    /**
     * A limited implementation of SOCKS Protocol Version 5, intended to be similar to MockWebServer.
     * See [RFC 1928](https://www.ietf.org/rfc/rfc1928.txt).
     */
    class SocksProxy {
      private val executor = Executors.newCachedThreadPool(threadFactory("SocksProxy"))
      private var serverSocket: ServerSocket? = null
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/ws/MessageInflater.kt

      private val inflater =
        Inflater(
          // nowrap (omits zlib header):
          true,
        )
    
      private val inflaterSource = InflaterSource(deflatedBytes, inflater)
    
      /** Inflates [buffer] in place as described in RFC 7692 section 7.2.2. */
      @Throws(IOException::class)
      fun inflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          inflater.reset()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         * concurrently, returning once any connection connects successfully.
         *
         * This implements Happy Eyeballs ([RFC 6555][rfc_6555]), balancing connect latency vs.
         * wasted resources.
         *
         * Defaults to enabled, call with [fastFallback] = false to revert to 4.x behaviour.
         *
         * [rfc_6555]: https://datatracker.ietf.org/doc/html/rfc6555
         */
        fun fastFallback(fastFallback: Boolean) =
          apply {
    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/main/kotlin/okhttp3/internal/ws/MessageDeflater.kt

          Deflater.DEFAULT_COMPRESSION,
          // nowrap (omits zlib header):
          true,
        )
    
      private val deflaterSink = DeflaterSink(deflatedBytes, deflater)
    
      /** Deflates [buffer] in place as described in RFC 7692 section 7.2.1. */
      @Throws(IOException::class)
      fun deflate(buffer: Buffer) {
        require(deflatedBytes.size == 0L)
    
        if (noContextTakeover) {
          deflater.reset()
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  10. CHANGELOG.md

     *  Upgrade: [Okio 3.7.0][okio_3_7_0].
    
    
    ## Version 5.0.0-alpha.11
    
    _2022-12-24_
    
     *  New: Enable fast fallback by default. It's our implementation of Happy Eyeballs,
        [RFC 8305][rfc_8305]. Disable with `OkHttpClient.Builder.fastFallback(false)`.
     *  Fix: Don't log response bodies for server-sent events.
     *  Fix: Skip early hints (status code 103) responses.
    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)
Back to top