- Sort Score
- Result 10 results
- Languages All
Results 11 - 18 of 18 for removeHeader (0.09 sec)
-
mockwebserver/api/mockwebserver3.api
public final fun headersDelay (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/MockResponse$Builder; public final fun inTunnel ()Lmockwebserver3/MockResponse$Builder; public final fun removeHeader (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder; public final fun setBody (Lmockwebserver3/MockResponseBody;)V public final fun setCode (I)V
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
okhttp/src/main/kotlin/okhttp3/Response.kt
*/ open fun addHeader( name: String, value: String, ) = commonAddHeader(name, value) /** Removes all headers named [name] on this builder. */ open fun removeHeader(name: String) = commonRemoveHeader(name) /** Removes all headers on this builder and adds [headers]. */ open fun headers(headers: Headers) = commonHeaders(headers)
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 06 09:38:30 UTC 2024 - 15.6K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/ws/WebSocketHttpTest.kt
override fun dispatch(request: RecordedRequest): MockResponse { return upgradeResponse(request) .body(Buffer().write("81".decodeHex())) // Truncated frame. .removeHeader("Content-Length") .socketPolicy(KeepOpen) .build() } } val webSocket: WebSocket = newWebSocket() clientListener.assertOpen() clientListener.assertFailure(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 35.2K bytes - Viewed (0) -
okhttp/api/okhttp.api
public fun patch (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; public fun post (Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; public fun put (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 Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Apr 15 13:41:01 UTC 2024 - 70.2K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
val method = response.request.method if (method == "GET" || method == "HEAD") return response val location = response.header("Location") ?: return response return response.newBuilder() .removeHeader("Location") .header("LegacyRedirectInterceptor-Location", location) .build() } } @Test fun response307WithPostReverted() { client = client.newBuilder()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
protocol: Protocol, mockWebServer: MockWebServer, ) { setUp(protocol, mockWebServer) val responseWithoutBody = MockResponse.Builder() .status("HTTP/1.1 204") .removeHeader("Content-Length") .build() server.enqueue(responseWithoutBody) val call = client.newCall(Request(server.url("/foo"))) val response = call.execute() // Body contains nothing.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
response: MockResponse.Builder, content: Buffer, chunkSize: Int, ) { response.body(content) response.socketPolicy(DisconnectAtEnd) response.removeHeader("Content-Length") } }, ; abstract fun setBody( response: MockResponse.Builder, content: Buffer, chunkSize: Int, ) fun setBody(
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Wed Apr 10 19:46:48 UTC 2024 - 108.6K bytes - Viewed (0) -
okhttp-urlconnection/build.gradle.kts
"Automatic-Module-Name: okhttp3.urlconnection", "Bundle-SymbolicName: com.squareup.okhttp3.urlconnection", "-removeheaders: Private-Package" ) dependencies { api(projects.okhttp) api(projects.okhttpJavaNetCookiejar) compileOnly(libs.findbugs.jsr305) compileOnly(libs.animalsniffer.annotations) } mavenPublishing {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Nov 20 16:20:29 UTC 2023 - 764 bytes - Viewed (0)