Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for CompressionInterceptor (0.06 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CompressionInterceptor.kt

     * a specific "Accept-Encoding: identity" or similar.
     *
     * See https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Accept-Encoding
     */
    open class CompressionInterceptor(
      vararg val algorithms: DecompressionAlgorithm,
    ) : Interceptor {
      internal val acceptEncoding =
        algorithms
          .map {
            it.encoding
          }.joinToString(separator = ", ")
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 2.9K bytes
    - Viewed (1)
  2. okhttp-brotli/src/main/kotlin/okhttp3/brotli/Brotli.kt

     * limitations under the License.
     */
    package okhttp3.brotli
    
    import okhttp3.CompressionInterceptor
    import okio.BufferedSource
    import okio.Source
    import okio.source
    import org.brotli.dec.BrotliInputStream
    
    object Brotli : CompressionInterceptor.DecompressionAlgorithm {
      override val encoding: String get() = "br"
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 1010 bytes
    - Viewed (0)
  3. okhttp-brotli/src/main/kotlin/okhttp3/brotli/BrotliInterceptor.kt

     */
    package okhttp3.brotli
    
    import okhttp3.CompressionInterceptor
    import okhttp3.Gzip
    
    /**
     * Transparent Brotli response support.
     *
     * Adds Accept-Encoding: br to request and checks (and strips) for Content-Encoding: br in
     * responses.  n.b. this replaces the transparent gzip compression in BridgeInterceptor.
     */
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 979 bytes
    - Viewed (0)
  4. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Gzip.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3
    
    import okhttp3.CompressionInterceptor.DecompressionAlgorithm
    import okio.BufferedSource
    import okio.GzipSource
    import okio.Source
    
    object Gzip : DecompressionAlgorithm {
      override val encoding: String get() = "gzip"
    
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Oct 07 15:15:28 UTC 2025
    - 936 bytes
    - Viewed (0)
  5. okhttp/api/jvm/okhttp.api

    }
    
    public class okhttp3/CompressionInterceptor : okhttp3/Interceptor {
    	public fun <init> ([Lokhttp3/CompressionInterceptor$DecompressionAlgorithm;)V
    	public final fun getAlgorithms ()[Lokhttp3/CompressionInterceptor$DecompressionAlgorithm;
    	public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    }
    
    public abstract interface class okhttp3/CompressionInterceptor$DecompressionAlgorithm {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.2K bytes
    - Viewed (0)
  6. android-test/src/androidTest/java/okhttp/android/test/OkHttpTest.kt

    import okhttp3.CallEvent.ResponseHeadersEnd
    import okhttp3.CallEvent.ResponseHeadersStart
    import okhttp3.CallEvent.SecureConnectEnd
    import okhttp3.CallEvent.SecureConnectStart
    import okhttp3.CertificatePinner
    import okhttp3.CompressionInterceptor
    import okhttp3.Connection
    import okhttp3.DelegatingSSLSocket
    import okhttp3.DelegatingSSLSocketFactory
    import okhttp3.EventListener
    import okhttp3.EventRecorder
    import okhttp3.Gzip
    import okhttp3.Headers
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Tue Nov 04 19:13:52 UTC 2025
    - 29.9K bytes
    - Viewed (0)
  7. okhttp/api/android/okhttp.api

    }
    
    public class okhttp3/CompressionInterceptor : okhttp3/Interceptor {
    	public fun <init> ([Lokhttp3/CompressionInterceptor$DecompressionAlgorithm;)V
    	public final fun getAlgorithms ()[Lokhttp3/CompressionInterceptor$DecompressionAlgorithm;
    	public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    }
    
    public abstract interface class okhttp3/CompressionInterceptor$DecompressionAlgorithm {
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Wed Nov 05 18:28:35 UTC 2025
    - 70.3K bytes
    - Viewed (0)
  8. CHANGELOG.md

        support it. It integrates a new (unstable) [ZSTD-KMP] library, also from Square. Enable it like
        this:
    
        ```kotlin
        val client = OkHttpClient.Builder()
          .addInterceptor(CompressionInterceptor(Zstd, Gzip))
          .build()
        ```
    
     *  New: Support the `QUERY` HTTP method. You will need to set the `Request.cacheUrlOverride`
    Registered: Fri Dec 26 11:42:13 UTC 2025
    - Last Modified: Fri Dec 05 16:02:59 UTC 2025
    - 36.2K bytes
    - Viewed (2)
Back to top