- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for socketHandler (0.04 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
val socketHandler = MockSocketHandler() .apply { receiveRequest("client says hello\n") sendResponse("server says hello\n") receiveRequest("client says goodbye\n") sendResponse("server says goodbye\n") exhaustResponse() exhaustRequest() } server.enqueue(socketHandler.upgradeResponse()) clientRegistered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 9.6K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
.socketHandler(body1) .build(), ) val body = MockSocketHandler() .sendResponse("response body\n") .exhaustResponse() .receiveRequest("request body\n") .exhaustRequest() server.enqueue( MockResponse .Builder() .clearHeaders() .socketHandler(body) .build(), )Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Tue Nov 04 19:13:52 UTC 2025 - 25.8K bytes - Viewed (0) -
CHANGELOG.md
component headers. * Breaking: Change `RecordedRequest.body` from a mutable `Buffer` to an immutable `ByteString`. * Breaking: Adopt Okio's new `Socket` interface for `MockResponse.socketHandler`. Note that any _Breaking_ changes above impact only APIs introduced in earlier 5.0.0-alpha releasees. We don't break binary compatibility with non-alpha APIs. ## Version 5.0.0-alpha.16 _2025-05-29_
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 05 16:02:59 UTC 2025 - 36.2K bytes - Viewed (2)