- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for throttleBody (0.04 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/EventListenerTest.kt
} } @Test fun failedDribbledCallEventSequence() { server.enqueue( MockResponse .Builder() .body("0123456789") .throttleBody(2, 100, TimeUnit.MILLISECONDS) .onResponseBody(CloseSocket()) .build(), ) client = client .newBuilder() .protocols(listOf<Protocol>(Protocol.HTTP_1_1))
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 70.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/HttpOverHttp2Test.kt
val body = CharArray(4096) // 4KiB to read. Arrays.fill(body, 'y') server.enqueue( MockResponse .Builder() .body(String(body)) .throttleBody(1024, 1, TimeUnit.SECONDS) // Slow connection 1KiB/second. .build(), ) client = client .newBuilder() .readTimeout(Duration.ofSeconds(2)) .build()
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 67.4K bytes - Click Count (0)