Skip to content

Type Alias: HTTPContextParams ​

HTTPContextParams = object

The parameters creating an HTTPContext, given by the HTTP adapters.

Properties ​

data ​

readonly data: Record<string, any>

The input of the action before its validation: by default, the query string merged with the parsed body (the route parameters are given apart, to the dispatch).


method ​

readonly method: string

The HTTP method of the action, as declared ('get').


request ​

readonly request: IncomingMessage

The Node.js request.


response ​

readonly response: ServerResponse

The Node.js response.


route ​

readonly route: string

The route of the action as declared, its controller prefix included ('/users/:id').

Released under the MIT License.