- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for sendResponse (0.09 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
@Test fun upgrade() { 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()) client
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 7.1K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt
try { stream.source.exhausted() throw AssertionError("expected IOException") } catch (expected: IOException) { } } } @JvmOverloads fun sendResponse( s: String, responseSent: CountDownLatch = CountDownLatch(1), ) = apply { actions += { stream -> stream.sink.writeUtf8(s) stream.sink.flush() responseSent.countDown() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0)