Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for removeHeader (0.47 sec)

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

        val algorithm = lookupDecompressor(encoding) ?: return response
    
        val decompressedSource = algorithm.decompress(body.source()).buffer()
    
        return response
          .newBuilder()
          .removeHeader("Content-Encoding")
          .removeHeader("Content-Length")
          .body(decompressedSource.asResponseBody(body.contentType(), -1))
          .build()
      }
    
      internal fun lookupDecompressor(encoding: String): DecompressionAlgorithm? =
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 01 06:04:22 UTC 2025
    - 3.2K bytes
    - Viewed (1)
  2. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Request.kt

        open fun addHeader(
          name: String,
          value: String,
        ) = apply {
          headers.add(name, value)
        }
    
        /** Removes all headers named [name] on this builder. */
        open fun removeHeader(name: String) =
          apply {
            headers.removeAll(name)
          }
    
        /** Removes all headers on this builder and adds [headers]. */
        open fun headers(headers: Headers) =
          apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 13.1K bytes
    - Viewed (1)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt

        open fun addHeader(
          name: String,
          value: String,
        ) = apply {
          headers.add(name, value)
        }
    
        /** Removes all headers named [name] on this builder. */
        open fun removeHeader(name: String) =
          apply {
            headers.removeAll(name)
          }
    
        /** Removes all headers on this builder and adds [headers]. */
        open fun headers(headers: Headers) =
          apply {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 14:39:28 UTC 2025
    - 18.1K bytes
    - Viewed (0)
  4. okhttp/api/jvm/okhttp.api

    	public fun post (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    	public fun put (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    	public fun query (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    	public fun removeHeader (Ljava/lang/String;)Lokhttp3/Request$Builder;
    	public fun tag (Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;
    	public fun tag (Ljava/lang/Object;)Lokhttp3/Request$Builder;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  5. okhttp/api/android/okhttp.api

    	public fun post (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    	public fun put (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    	public fun query (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder;
    	public fun removeHeader (Ljava/lang/String;)Lokhttp3/Request$Builder;
    	public fun tag (Ljava/lang/Class;Ljava/lang/Object;)Lokhttp3/Request$Builder;
    	public fun tag (Ljava/lang/Object;)Lokhttp3/Request$Builder;
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 69.4K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt

            response: MockResponse.Builder,
            content: Buffer,
            chunkSize: Int,
          ) {
            response.body(content)
            response.onResponseEnd(ShutdownConnection)
            response.removeHeader("Content-Length")
          }
        }, ;
    
        abstract fun setBody(
          response: MockResponse.Builder,
          content: Buffer,
          chunkSize: Int,
        )
    
        fun setBody(
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Aug 16 09:39:51 UTC 2025
    - 113.6K bytes
    - Viewed (0)
Back to top