new HandlerService(app, opts)
Handler service.
Dispatch request to the relactive handler.
Parameters:
Name | Type | Description |
---|---|---|
app |
Application | current application context |
opts |
object |
Methods
-
getHandler(handlers, routeRecord) → {Object}
-
Get handler instance by routeRecord.
Parameters:
Name Type Description handlers
Object handler map routeRecord
Object route record parsed from route string Returns:
Object - handler instance if any matchs or null for match fail -
handle()
-
Handler the request.