- Sort Score
- Result 10 results
- Languages All
Results 11 - 14 of 14 for QueueDispatcher (0.06 sec)
-
mockwebserver/src/test/java/mockwebserver3/MockWebServerTest.kt
.toUrl() .openConnection() .getInputStream() // Should succeed. } @Test fun clearDispatcherQueue() { server.enqueue(MockResponse(body = "A")) (server.dispatcher as QueueDispatcher).clear() server.enqueue(MockResponse(body = "B")) val inputStream = server .url("/a") .toUrl() .openConnection() .getInputStream()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sun Aug 03 22:38:00 UTC 2025 - 28K bytes - Viewed (0) -
mockwebserver-deprecated/api/mockwebserver.api
public final fun method ()Ljava/lang/String; public final fun path ()Ljava/lang/String; public final fun response ()Lokhttp3/mockwebserver/MockResponse; } public final class okhttp3/mockwebserver/QueueDispatcher : okhttp3/mockwebserver/Dispatcher { public fun <init> ()V public fun dispatch (Lokhttp3/mockwebserver/RecordedRequest;)Lokhttp3/mockwebserver/MockResponse;
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt
fail<Any>() } catch (expected: ConnectException) { } } @Test fun shutdownWhileBlockedDispatching() { // Enqueue a request that'll cause MockWebServer to hang on QueueDispatcher.dispatch(). val connection = server.url("/").toUrl().openConnection() as HttpURLConnection connection.setReadTimeout(500) try { connection.getResponseCode() fail<Any>()
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 03 13:16:34 UTC 2025 - 22.3K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CallTest.kt
// Set to 2 because the seeding request will count down before the retried request does. val requestFinished = CountDownLatch(2) val dispatcher: QueueDispatcher = object : QueueDispatcher() { override fun dispatch(request: RecordedRequest): MockResponse { if (peek().onResponseStart is CloseSocket) { requestFinished.await() }
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 146.6K bytes - Viewed (0)