Configures a new request handler. Must be followed by one of the response definition methods below.
Defines the HTTP response.
Causes HTTP requests to the corresponding request handler to get accepted but never receive a response. This is useful for timeout testing.
Registers a request handler to be used in conjunction with
Verifies that an expected request handler has been called. Must be used in conjunction with one of the methods listed below.
Verify that the server never received the request.
Verify that the server received the request exactly once.
Verify the the server received the request exactly
countType: __Number __
Removes all of our registered handlers and reverts the server to its initial state.
data Type: Object | String
The response body the server should respond with.
headers Type: Object
The HTTP headers key value pairs.