Type Alias: HTTPContextParams
HTTPContextParams =
object
The parameters creating an HTTPContext, given by the HTTP adapters.
Properties
data
readonlydata: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
readonlymethod:string
The HTTP method of the action, as declared ('get').
request
readonlyrequest:IncomingMessage
The Node.js request.
response
readonlyresponse:ServerResponse
The Node.js response.
route
readonlyroute:string
The route of the action as declared, its controller prefix included ('/users/:id').