ServerRouter

router/ServerRouter~ ServerRouter

The server-side implementation of the Router interface.

Constructor

new ServerRouter(pageManager, factory, dispatcher, request, response)

Source:
Initializes the router.
Parameters:
Name Type Description
pageManager PageManager The current page manager.
factory RouteFactory The router factory used to create routes.
dispatcher Dispatcher Dispatcher fires events to app.
request Request The current HTTP request.
response Response The current HTTP response.

Members

_request :Request

Source:
The current HTTP request.
Type:
  • Request

_response :Response

Source:
The current HTTP response.
Type:
  • Response

Methods

getPath()

Source:

listen()

Source:

redirect()

Source: