- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for evictAll (0.06 sec)
-
okhttp/src/test/java/okhttp3/CacheTest.kt
.build() val response = get(url) assertThat(response.body.string()).isEqualTo(entryBody) assertThat(response.header("Content-Length")).isEqualTo("3") } @Test fun evictAll() { server.enqueue( MockResponse.Builder() .addHeader("Cache-Control: max-age=60") .body("A") .build(), ) server.enqueue( MockResponse.Builder()
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/src/test/java/okhttp3/URLConnectionTest.kt
// Connection is not pooled. assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) } @Test fun endOfStreamResponseIsNotPooled() { client.connectionPool.evictAll() server.enqueue( MockResponse.Builder() .body("{}") .clearHeaders() .socketPolicy(DisconnectAtEnd) .build(), )
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)