- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for removeHeader (0.05 sec)
-
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/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)