QueueDispatcher
Default dispatcher that processes a script of responses. Populate the script by calling enqueueResponse.
Functions
Link copied to clipboard
Returns a response to satisfy request
. This method may block (for instance, to wait on a CountdownLatch).
Link copied to clipboard
Link copied to clipboard
Returns an early guess of the next response, used for policy on how an incoming request should be received. The default implementation returns an empty response. Mischievous implementations can return other values to test HTTP edge cases, such as unhappy socket policies or throttled request bodies.
Link copied to clipboard