- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for RemoveAll (0.28 sec)
-
okhttp/src/main/kotlin/okhttp3/Cache.kt
} val sendRequestMillisString = responseHeadersBuilder[SENT_MILLIS] val receivedResponseMillisString = responseHeadersBuilder[RECEIVED_MILLIS] responseHeadersBuilder.removeAll(SENT_MILLIS) responseHeadersBuilder.removeAll(RECEIVED_MILLIS) sentRequestMillis = sendRequestMillisString?.toLong() ?: 0L receivedResponseMillis = receivedResponseMillisString?.toLong() ?: 0L
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 26.8K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt
) = apply { removeHeader(name) addHeader(name, value) } /** Removes all headers named [name]. */ fun removeHeader(name: String) = apply { headers.removeAll(name) } fun body(body: Buffer) = body(body.toMockResponseBody()) fun body(body: MockResponseBody) = apply { setHeader("Content-Length", body.contentLength)
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Tue Jan 23 14:31:42 GMT 2024 - 13.3K bytes - Viewed (1) -
okhttp/src/main/kotlin/okhttp3/Headers.kt
* from the remote peer or cache. */ internal fun addLenient( name: String, value: String, ) = commonAddLenient(name, value) fun removeAll(name: String) = commonRemoveAll(name) /** * Set a field with the specified value. If the field is not found, it is added. If the field is * found, the existing values are replaced. */
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 11.5K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt
builder = builder.add("", Instant.EPOCH) builder = builder.set("", "") builder = builder.set("", Date(0L)) builder = builder.set("", Instant.EPOCH) builder = builder.removeAll("") val get: String? = builder[""] val headers: Headers = builder.build() } @Test fun httpLoggingInterceptor() { var interceptor: HttpLoggingInterceptor = HttpLoggingInterceptor()
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Apr 01 14:21:25 GMT 2024 - 46.5K bytes - Viewed (4)