Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for GzipSource (0.1 seconds)

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

    package okhttp3
    
    import okhttp3.CompressionInterceptor.DecompressionAlgorithm
    import okio.BufferedSource
    import okio.GzipSource
    import okio.Source
    
    object Gzip : DecompressionAlgorithm {
      override val encoding: String get() = "gzip"
    
      override fun decompress(compressedSource: BufferedSource): Source = GzipSource(compressedSource)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 15:15:28 GMT 2025
    - 936 bytes
    - Click Count (0)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

        if (transparentGzip &&
          "gzip".equals(networkResponse.header("Content-Encoding"), ignoreCase = true) &&
          networkResponse.promisesBody()
        ) {
          val responseBody = networkResponse.body
          val gzipSource = GzipSource(responseBody.source())
          val strippedHeaders =
            networkResponse.headers
              .newBuilder()
              .removeAll("Content-Encoding")
              .removeAll("Content-Length")
              .build()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sun Jan 11 12:06:21 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  3. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

    import okhttp3.internal.charsetOrUtf8
    import okhttp3.internal.http.promisesBody
    import okhttp3.internal.isProbablyUtf8
    import okhttp3.internal.platform.Platform
    import okio.Buffer
    import okio.GzipSource
    
    /**
     * An OkHttp interceptor which logs request and response information. Can be applied as an
     * [application interceptor][OkHttpClient.interceptors] or as a [OkHttpClient.networkInterceptors].
     *
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Nov 07 02:57:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
  4. okhttp/src/jvmTest/kotlin/okhttp3/RequestTest.kt

    import okhttp3.RequestBody.Companion.toRequestBody
    import okhttp3.internal.EmptyTags
    import okio.Buffer
    import okio.ByteString.Companion.decodeHex
    import okio.ByteString.Companion.encodeUtf8
    import okio.GzipSource
    import okio.buffer
    import okio.use
    import org.junit.jupiter.api.Test
    
    class RequestTest {
      @Test
      fun constructor() {
        val url = "https://example.com/".toHttpUrl()
        val body = "hello".toRequestBody()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 24.6K bytes
    - Click Count (0)
Back to Top