- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for throttleBody (0.1 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/URLConnectionTest.kt
assertThat(getResponse(Request(url)).code).isEqualTo(407) } @Test fun disconnectedConnection() { server.enqueue( MockResponse .Builder() .throttleBody(2, 100, TimeUnit.MILLISECONDS) .body("ABCD") .build(), ) val call = client.newCall(newRequest("/")) val response = call.execute() val inputStream = response.body.byteStream()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 133.3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
} @Test fun timeoutsUpdatedOnReusedConnections() { server.enqueue(MockResponse(body = "abc")) server.enqueue( MockResponse .Builder() .body("def") .throttleBody(1, 750, TimeUnit.MILLISECONDS) .build(), ) // First request: time out after 1s. client = client .newBuilder() .readTimeout(Duration.ofSeconds(1))
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sun Mar 15 09:02:18 GMT 2026 - 146.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CacheTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Mar 20 09:13:37 GMT 2026 - 121K bytes - Click Count (0)