mockwebserver / okhttp3.mockwebserver / MockWebServer / enqueue

enqueue

fun enqueue(response: MockResponse!): Unit

Scripts response to be returned to a request made in sequence. The first request is served by the first enqueued response; the second request by the second enqueued response; and so on.

Exceptions

ClassCastException - if the default dispatcher has been replaced with .