- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for getDispatcher (0.09 sec)
-
mockwebserver/README.md
} return new MockResponse().setResponseCode(404); } }; server.setDispatcher(dispatcher); ``` ### Download ```kotlin testImplementation("com.squareup.okhttp3:mockwebserver:4.12.0") ``` ### License
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Dec 17 15:34:10 UTC 2023 - 5K bytes - Viewed (0) -
mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt
* served by the first enqueued response; the second request by the second enqueued response; and * so on. * * @throws ClassCastException if the default dispatcher has been * replaced with [setDispatcher][dispatcher]. */ fun enqueue(response: MockResponse) = (dispatcher as QueueDispatcher).enqueueResponse(response) /** * Starts the server on the loopback interface for the given port. *
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Mar 31 17:16:15 UTC 2024 - 37.4K bytes - Viewed (0)