Constructs an instance of the RequestModel.
The base URL of the HTTP request.
HTTP method, default is 'GET'.
URL path.
Query parameters as a record of key-value pairs.
Body of the request as a record of key-value pairs.
HTTP headers as a record of key-value pairs.
Protocol scheme, default is 'http'.
Port number, default is 80.
Private
bodyPrivate
headersPrivate
methodPrivate
pathPrivate
portPrivate
queryPrivate
schemePrivate
timeoutPrivate
urlSets the body of the HTTP request.
A record of key-value pairs representing the body content.
Sets the query parameters for the HTTP request.
A record of key-value pairs representing the query parameters.
Represents a model for HTTP requests. This class encapsulates all necessary details such as URL, method, path, query parameters, body, headers, scheme, port, and timeout settings.