Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for enqueueResponse (0.42 sec)

  1. mockwebserver-deprecated/api/mockwebserver.api

    	public fun <init> ()V
    	public fun dispatch (Lokhttp3/mockwebserver/RecordedRequest;)Lokhttp3/mockwebserver/MockResponse;
    	public final fun enqueueResponse (Lokhttp3/mockwebserver/MockResponse;)V
    	public fun peek ()Lokhttp3/mockwebserver/MockResponse;
    	public final fun setFailFast (Lokhttp3/mockwebserver/MockResponse;)V
    	public final fun setFailFast (Z)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  2. mockwebserver/api/mockwebserver3.api

    	public static final field Companion Lmockwebserver3/QueueDispatcher$Companion;
    	public fun <init> ()V
    	public fun clear ()V
    	public fun dispatch (Lmockwebserver3/RecordedRequest;)Lmockwebserver3/MockResponse;
    	public fun enqueueResponse (Lmockwebserver3/MockResponse;)V
    	protected final fun getResponseQueue ()Ljava/util/concurrent/BlockingQueue;
    	public fun peek ()Lmockwebserver3/MockResponse;
    	public fun setFailFast (Lmockwebserver3/MockResponse;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

       * 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.
       *
       * @param port the port to listen to, or 0 for any available port. Automated tests should always
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Mar 31 17:16:15 UTC 2024
    - 37.4K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

          queueDispatcher.dispatch(
            RecordedRequest("", headersOf(), listOf(), 0L, Buffer(), 0, Socket()),
          )
        mockResponse = queueDispatcher.peek()
        queueDispatcher.enqueueResponse(MockResponse())
        queueDispatcher.shutdown()
        queueDispatcher.setFailFast(false)
        queueDispatcher.setFailFast(MockResponse())
      }
    
      @Test
      fun recordedRequest() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top