- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for config (0.16 sec)
-
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
// Previously we had a bug where we would download the entire response body as long as no // individual read took longer than 100ms. assertThat(elapsedMillis).isLessThan(500L) // Do another request to confirm that the discarded connection was not pooled. assertContent("A", getResponse(newRequest("/"))) assertThat(server.takeRequest().sequenceNumber).isEqualTo(0) // Connection is not pooled.
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Sat Jan 20 10:30:28 GMT 2024 - 131.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/CacheTest.kt
ifNoneMatch.compareAndSet(null, chain.request().header("If-None-Match")) chain.proceed(chain.request()) }, ) .build() // Confirm the value is cached and intercepted. assertThat(get(url).body.string()).isEqualTo("A") assertThat(ifNoneMatch.get()).isEqualTo("v1") } @Test fun networkInterceptorNotInvokedForFullyCached() {
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Wed Apr 10 19:46:48 GMT 2024 - 108.6K bytes - Viewed (0)