The backing IncomingMessage object wrapped by this FloofRequest.
The HTTP status code this request was made with.
The HTTP verb this request was made with.
The original path as defined by the endpoint. Use FloofRequest#url to get the request with parameters interpolated.
The full URL this request was made to.
The HTTP status message this request's status code is associated with.
The path this request was made to with parameters included. Use FloofRequest#path to get the original endpoint's path.
Retrieves the message body.
A promise that resolves with the body, parsed as whatever type was specified.
Retrieves a cookie value.
The key of the cookie value to retrieve.
The cookie value associated with the given key, or null if none exists.
Retrieves a request header.
The header to retrieve.
The header value, or null if none exists.
Retrieves a path parameter.
The parameter to retrieve.
The parameter value, adapted to whatever type the parameter is specified as.
Retrieves a query parameter.
The parameter to retrieve.
The parameter value, adapted to whatever type the parameter is specified as.
Generated using TypeDoc
An object representing an incoming request. Any path parameters and query parameters are also exposed as properties of a FloofRequest. Path parameters take priority if a conflict arises with a query parameter.