Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 24 for transport (0.18 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

    import okhttp3.internal.readMedium
    import okio.Buffer
    import okio.BufferedSource
    import okio.ByteString
    import okio.Source
    import okio.Timeout
    
    /**
     * Reads HTTP/2 transport frames.
     *
     * This implementation assumes we do not send an increased [frame][Settings.getMaxFrameSize] to the
     * peer. Hence, we expect all frames to have a max length of [Http2.INITIAL_MAX_FRAME_SIZE].
     */
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/OkHttpClient.kt

         *
         * **This is an evolving set.** Future releases include support for transitional
         * protocols. The http/1.1 transport will never be dropped.
         *
         * If multiple protocols are specified, [ALPN][alpn] will be used to negotiate a transport.
         * Protocol negotiation is only attempted for HTTPS URLs.
         *
    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)
  3. CHANGELOG.md

     *  Fix: Attempt to read the response body even if the server canceled the request. This will cause
        some calls to return nice error codes like `HTTP/1.1 429 Too Many Requests` instead of transport
        errors like `SocketException: Connection reset` and `StreamResetException: stream was reset:
        CANCEL`.
     *  New: Support OSGi metadata.
     *  Upgrade: [Okio 2.9.0][okio_2_9_0].
    
        ```kotlin
    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)
  4. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          return true
        }
      }
    
      /**
       * HTTP/2 can have both stream timeouts (due to a problem with a single stream) and connection
       * timeouts (due to a problem with the transport). When a stream times out we don't know whether
       * the problem impacts just one stream or the entire connection.
       *
       * To differentiate the two cases we ping the server when a stream times out. If the overall
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 32.6K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CacheControlJvmTest.kt

            .noTransform()
            .immutable()
            .build()
        assertThat(cacheControl.toString()).isEqualTo(
          "no-cache, no-store, max-age=1, max-stale=2, min-fresh=3, only-if-cached, " +
            "no-transform, immutable",
        )
        assertThat(cacheControl.noCache).isTrue()
        assertThat(cacheControl.noStore).isTrue()
        assertThat(cacheControl.maxAgeSeconds).isEqualTo(1)
        assertThat(cacheControl.maxStaleSeconds).isEqualTo(2)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 7.3K bytes
    - Viewed (0)
  6. okhttp/src/main/kotlin/okhttp3/internal/-CacheControlCommon.kt

            if (minFreshSeconds != -1) append("min-fresh=").append(minFreshSeconds).append(", ")
            if (onlyIfCached) append("only-if-cached, ")
            if (noTransform) append("no-transform, ")
            if (immutable) append("immutable, ")
            if (isEmpty()) return ""
            deleteRange(length - 2, length)
          }
        headerValue = result
      }
      return result
    }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 15 13:41:01 GMT 2024
    - 7.2K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/http/ExchangeCodec.kt

      /** Flush the request to the underlying socket and signal no more bytes will be transmitted. */
      @Throws(IOException::class)
      fun finishRequest()
    
      /**
       * Parses bytes of a response header from an HTTP transport.
       *
       * @param expectContinue true to return null if this is an intermediate response with a "100"
       * response code. Otherwise this method never returns null.
       */
      @Throws(IOException::class)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/Protocol.kt

       *
       * [rfc_7540_34]: https://tools.ietf.org/html/rfc7540.section-3.4
       */
      H2_PRIOR_KNOWLEDGE("h2_prior_knowledge"),
    
      /**
       * QUIC (Quick UDP Internet Connection) is a new multiplexed and secure transport atop UDP,
       * designed from the ground up and optimized for HTTP/2 semantics. HTTP/1.1 semantics are layered
       * on HTTP/2.
       *
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 06 04:17:33 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  9. docs/changelogs/changelog_3x.md

        challenge.
     *  Fix: Use the proxy authenticator when authenticating HTTP proxies. This
        regression was introduced in OkHttp 3.0.
     *  Fix: Fail fast if network interceptors transform the response body such that
        closing it doesn't also close the underlying stream. We had a bug where
        OkHttp would attempt to reuse a connection but couldn't because it was still
        held by a prior request.
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 14:55:54 GMT 2022
    - 50.8K bytes
    - Viewed (0)
  10. docs/features/interceptors.md

     * Access to the `Connection` that carries the request.
    
    ### Rewriting Requests
    
    Interceptors can add, remove, or replace request headers. They can also transform the body of those requests that have one. For example, you can use an application interceptor to add request body compression if you're connecting to a webserver known to support it.
    
    ```java
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Feb 06 02:19:09 GMT 2022
    - 8.1K bytes
    - Viewed (0)
Back to top