- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for onRequestBody (0.05 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
writeHttpResponse(socket, response) } val requestBodySink = requestBody .withThrottlingAndSocketEffect( policy = peek, socketEffect = peek.onRequestBody, expectedByteCount = contentLength, socket = socket, ).buffer() requestBodySink.use { when { peek.doNotReadRequestBody -> {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Aug 02 20:36:00 UTC 2025 - 40.3K bytes - Viewed (0) -
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
inputStream.close() } @Test fun disconnectRequestHalfway() { server.enqueue( MockResponse .Builder() .onRequestBody(CloseSocket()) .build(), ) // Limit the size of the request body that the server holds in memory to an arbitrary // 3.5 MBytes so this test can pass on devices with little memory.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0)