Properties
Readonly providers
providers: Provider[]
Methods
Abstract addAnyRoute
- addAnyRoute(handler: (event: WebEvent) => void): any
Abstract addConnectMiddleware
- addConnectMiddleware(path: string, middleware: Function): any
-
Parameters
-
path: string
-
middleware: Function
Returns any
Abstract addRoute
- addRoute(method: string, path: string, handler: (event: WebEvent) => void, middleware?: any): any
-
Parameters
-
method: string
-
path: string
-
handler: (event: WebEvent) => void
-
Optional middleware: any
Returns any
Abstract listen
-
Parameters
Returns Promise<Server>
Abstract sendJsonBody
- sendJsonBody(routeEvent: WebEvent, body: any): any