- Preparing search index...
- The search index is not available
docs.hg.fi
Constructors
constructor
- new RequestServer(config?: string): RequestServer
-
Parameters
-
config: string = DEFAULT_REQUEST_SERVER_CONFIG_STRING
Properties
Private
Readonly
_handleRequestCallback
Private
Readonly
_observer
Private
Readonly
_server
_server
: ServerService<IncomingMessage, ServerResponse<IncomingMessage>>
Methods
Private
_handleErrorResponse
- _handleErrorResponse(error: any, res: ServerResponse<IncomingMessage>): void
-
Parameters
-
error: any
-
res: ServerResponse<IncomingMessage>
Returns void
Private
_handleRequest
- _handleRequest(req: IncomingMessage, res: ServerResponse<IncomingMessage>): Promise<void>
-
Parameters
-
req: IncomingMessage
-
res: ServerResponse<IncomingMessage>
Returns Promise<void>
Private
_handleResponse
- _handleResponse(responseEntity: ResponseEntity<any>, res: ServerResponse<IncomingMessage>): void
-
Parameters
-
-
res: ServerResponse<IncomingMessage>
Returns void
Private
_parseRequestHeaders
Private
Parameters
-
value: IncomingHttpHeaders
attachController
- attachController(controller: any): void
-
Returns void
destroy
- destroy(): void
-
Returns void
start
- start(): void
-
Returns void
stop
- stop(): void
-
Returns void
Static
Private
_requestBodyParser
Static
createServerService
- createServerService(config: string): ServerService<IncomingMessage, ServerResponse<IncomingMessage>>
-
Returns ServerService<IncomingMessage, ServerResponse<IncomingMessage>>
Static
setLogLevel
- setLogLevel(level: LogLevel): void
-
Returns void
Attach an instance which was previously annotated with our Request annotation implementation.