- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for throttleBody (0.05 sec)
-
okhttp/src/test/java/okhttp3/EventListenerTest.kt
) } @Test fun failedDribbledCallEventSequence() { server.enqueue( MockResponse.Builder() .body("0123456789") .throttleBody(2, 100, TimeUnit.MILLISECONDS) .socketPolicy(DisconnectDuringResponseBody) .build(), ) client = client.newBuilder() .protocols(listOf<Protocol>(Protocol.HTTP_1_1))
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 56.9K bytes - Viewed (2) -
okhttp/src/test/java/okhttp3/internal/http2/HttpOverHttp2Test.kt
) { setUp(protocol, mockWebServer) 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()
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Thu Apr 11 22:09:35 UTC 2024 - 75.3K bytes - Viewed (0)