- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for getDispatcher (0.13 sec)
-
mockwebserver-deprecated/api/mockwebserver.api
public fun close ()V public final fun enqueue (Lokhttp3/mockwebserver/MockResponse;)V public final fun getBodyLimit ()J public final fun getDelegate ()Lmockwebserver3/MockWebServer; public final fun getDispatcher ()Lokhttp3/mockwebserver/Dispatcher; public final fun getHostName ()Ljava/lang/String; public final fun getPort ()I public final fun getProtocolNegotiationEnabled ()Z public final fun getRequestCount ()I
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jul 22 12:28:51 UTC 2023 - 10.2K bytes - Viewed (0) -
mockwebserver/api/mockwebserver3.api
public fun <init> ()V public fun close ()V public final fun enqueue (Lmockwebserver3/MockResponse;)V public final fun getBodyLimit ()J public final fun getDispatcher ()Lmockwebserver3/Dispatcher; public final fun getHostName ()Ljava/lang/String; public final fun getInetSocketAddress ()Ljava/net/InetSocketAddress; public final fun getPort ()I
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Tue Jan 03 21:59:45 UTC 2023 - 12.7K bytes - Viewed (0) -
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)