Gets a header as the specified type, or returns the default value if the header with the given name doesn't exist or is of an invalid format.
Gets a URL parameter as the specified type, or returns the default value if the parameter with the given name doesn't exist or is of an invalid format.
Gets a path parameter as the specified type, or returns the default value if the path parameter with the given name doesn't exist or is of an invalid format.
Reads the entirety of the request body, and passes it to the given output stream.
Convenience method for reading the entire request body as an array of bytes.
Convenience method for reading the entire request body as a series of form-urlencoded key-value pairs.
Convenience method for reading the entire request body as a JSON node. An exception will be thrown if the body cannot be parsed as JSON.
Convenience method for reading the entire request body as a string.
Convenience method for reading the entire request body to a file.
A list of all request headers.
The input stream for the request's body. This may be null if the request doesn't have a body.
The HTTP method verb, such as GET, POST, PUT, etc. This is internally defined as a bit-shifted 1, for efficient matching logic. See the Method enum in this module for more information.
An associative array containing any path parameters obtained from the request url. These are only populated in cases where it is possible to parse path parameters, such as with a PathHandler.
If this request was processed by a PathHandler, then this will be set to the path pattern that was matched when it chose a handler to handle this request.
A list of parsed query parameters from the request's URL.
The pre-allocated buffer that we'll use when receiving the rest of this request's body, if it has one. This buffer belongs to the worker that is handling the request.
The remote address that this request was received from.
The url of the request, excluding query parameters.
The request version.
The data which the server provides to HttpRequestHandlers so that they can formulate a response.