enqueue

fun enqueue(response: MockResponse)

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.

Throws

if the default dispatcher has been replaced with setDispatcher.