- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for MockSocketHandler (0.17 sec)
-
okhttp-testing-support/src/main/kotlin/okhttp3/internal/duplex/MockSocketHandler.kt
private typealias Action = (BufferedSocket) -> Unit /** * A scriptable request/response conversation. Create the script by calling methods like * [receiveRequest] in the sequence they are run. */ class MockSocketHandler : SocketHandler { private val actions = LinkedBlockingQueue<Action>() private val results = LinkedBlockingQueue<FutureTask<Void>>() fun receiveRequest(expected: String) = apply {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/HttpUpgradesTest.kt
import okhttp3.Protocol import okhttp3.RecordingEventListener import okhttp3.RecordingHostnameVerifier import okhttp3.Request import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.internal.duplex.MockSocketHandler import okhttp3.testing.PlatformRule import okio.ProtocolException import okio.buffer import okio.use import org.junit.jupiter.api.Test import org.junit.jupiter.api.extension.RegisterExtension
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/src/jvmTest/kotlin/okhttp3/DuplexTest.kt
import okhttp3.RequestBody.Companion.toRequestBody import okhttp3.TestUtil.assumeNotWindows import okhttp3.internal.RecordingOkAuthenticator import okhttp3.internal.duplex.AsyncRequestBody import okhttp3.internal.duplex.MockSocketHandler import okhttp3.testing.PlatformRule import okio.BufferedSink import org.junit.jupiter.api.AfterEach import org.junit.jupiter.api.Assertions.assertTrue import org.junit.jupiter.api.BeforeEach
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Jun 18 12:28:21 UTC 2025 - 24.8K bytes - Viewed (0)