void queueResponse(Response resp)

Adds an HTTP response to the list of responses to be returned.

A queued response will be returned for the next HTTP request made to this instance and will then be removed. You may queue up as many responses as you like and they will be returned in order.

Source

void queueResponse(Response resp) {
  responseQueue.add(resp);
}