Response

Response.ValidationError
static

Error type to be thrown when a response validation error is encountered. Defaults to ValidationError. Can be updated by the user.

Type:
Error
new Response(cb)Response

simple wrapper object holding a callback which sets response headers & data when executed

Parameters:
  • cb
    • Type: function
    • callback function which actually sets response on the (express) res object. It's context is always set to the res object

Returns: Response
comments powered by Disqus