com.stackmob.newman.dsl.AsyncResponseHandlerDSL
Provide a default handler for all unhandled status codes.
Provide a default handler for all unhandled status codes. Must be the last handler in the chain
Adds a handler that expects the specified response code and a JSON body readable by a JSONR for the type of this ResponseHandler.
Adds a handler that expects the specified response code and a JSON body readable by a JSONR for the type of this ResponseHandler. A Response can only return one successful type per request so multiple calls to this method should not be made, however, if there are there is no effect on the handling of the response.
Adds a handler that expects a 204 response.
Adds a handler that expects a 204 response. If encountered, the value passed to this method will be returned when the handler is sealed and the IO is performed. This method should only be called once per response but multiple calls have no effect
- the value to return successfully when a 204 is encountered
a new ResponseHandler
Adds a handler (a function that is called when the given code is matched) and returns a new ResponseHandler
Adds a handler (a function that is called when the given code is matched) and returns a new ResponseHandler
response code this handler is for
function to call when response with given code is encountered
Adds a handler (a function that is called when any of the given codes are matched) and returns a new ResponseHandler
Adds a handler (a function that is called when any of the given codes are matched) and returns a new ResponseHandler
response code this handler matches
function to call when response with given code is encountered
Adds a handler (a function that is called when the code matches the given function) and returns a new ResponseHandler
Adds a handler (a function that is called when the code matches the given function) and returns a new ResponseHandler
response code this handler is for
function to call when response with given code is encountered
Adds a handler that expects the specified response code and a JSON body readable by a JSONR for the type of this ResponseHandler, which is then transformed by the supplied function.
Adds a handler that expects the specified response code and a JSON body readable by a JSONR for the type of this ResponseHandler, which is then transformed by the supplied function. A Response can only return one successful type per request so multiple calls to this method should not be made, however, if there are there is no effect on the handling of the response. @return a new com.stackmob.newman.dsl.ResponseHandler
the same thing as
, except for asynchronous response handling
com.stackmob.newman.dsl.ResponseHandlerDSL }}}