Class AbstractHttpAdapter<TServer, TRequest, TResponse>
Type parameters
-
TServer
-
TRequest
-
TResponse
Properties
Protected httpServer
httpServer: TServer
Protected instance
instance: any
Methods
Abstract createMiddlewareFactory
-
Parameters
Returns function
-
- (path: string, callback: Function): any
-
Parameters
-
path: string
-
callback: Function
Returns any
delete
-
Parameters
Returns any
-
Parameters
Returns any
get
-
Parameters
Returns any
-
Parameters
Returns any
getInstance
-
Type parameters
Returns T
Abstract getRequestMethod
- getRequestMethod(request: any): any
Abstract getRequestUrl
- getRequestUrl(request: any): any
head
-
Parameters
Returns any
-
Parameters
Returns any
listen
- listen(port: string | number, callback?: function): any
- listen(port: string | number, hostname: string, callback?: function): any
-
Parameters
-
port: string | number
-
Optional callback: function
Returns any
-
Parameters
-
port: string | number
-
hostname: string
-
Optional callback: function
Returns any
options
-
Parameters
Returns any
-
Parameters
Returns any
patch
-
Parameters
Returns any
-
Parameters
Returns any
post
-
Parameters
Returns any
-
Parameters
Returns any
put
-
Parameters
Returns any
-
Parameters
Returns any
Abstract registerParserMiddleware
- registerParserMiddleware(): any
Abstract render
- render(response: any, view: string, options: any): any
-
Parameters
-
response: any
-
view: string
-
options: any
Returns any
Abstract reply
- reply(response: any, body: any, statusCode?: number): any
-
Parameters
-
response: any
-
body: any
-
Optional statusCode: number
Returns any
Abstract setErrorHandler
- setErrorHandler(handler: Function): any
Abstract setHeader
- setHeader(response: any, name: string, value: string): any
-
Parameters
-
response: any
-
name: string
-
value: string
Returns any
setHttpServer
- setHttpServer(httpServer: TServer): void
Abstract setNotFoundHandler
- setNotFoundHandler(handler: Function): any
Abstract setViewEngine
- setViewEngine(engine: string): any
Abstract status
- status(response: any, statusCode: number): any
-
Parameters
-
response: any
-
statusCode: number
Returns any
Abstract useStaticAssets
- useStaticAssets(...args: any[]): any