Class: RequestHandler

RequestHandler


new RequestHandler(application, options)

Variables

 - {Object}  route   JSON containing the routes to use
 - {String}  key     session key to be used to store interim results
Parameters:
Name Type Description
application String

Session's application name

options Object
Properties
Name Type Description
useMiddlewareErrorHandler Boolean

if true, uses the Middleware error handler, else will redirect to the error route ("/error" by default)

route.error String

path to the default error route ('/error' by default)

Source: