A `Request` object represents an incoming HTTP request. It stores query string, parameters, body, headers, method, and protocol information. By convention, the request object is named `req` (with the corresponding response named `res`).
An [`R6::R6Class`] generator for `Request` objects.
[Response]
parametersNamed list of route parameters.
headersNamed list of request headers.
pathThe request path.
methodHTTP method (e.g., `"GET"`, `"POST"`).
rawThe raw request object as received.
typeContent type (e.g., `"text/html"`, `"application/json"`).
bodyRaw request body as a single string.
protocolProtocol string (`"http"` or `"websocket"`).
attach()Attach a parameter key-value to `parameters`.