Optional
body?: stringOptional body of the request.
The HTTP headers as a record of key-value pairs.
The HTTP method used for the request, e.g., 'GET', 'POST'.
The full URL as received in the HTTP request line.
Query parameters parsed from the URL as a record of key-value pairs.
The path part of the URL, excluding the query string.
The protocol used in the request, typically 'HTTP/1.1' or 'HTTP/2.0'.
Represents an HTTP request received by the server.
This type is used to define the structure of an HTTP request. It encapsulates various components of a typical HTTP request, such as headers, method, URL, and body.