Class representing an HTTP client resource, which includes details about the HTTP method, URL, request data, headers, and response.
Regular expression for validating HTTP methods.
Function to check if a given HTTP method is valid.
The HTTP method to be used for the request.
The URL to which the request will be sent.
Optional data to be sent with the request.
A mapping of headers to be included in the request.
A mapping of parameters to be included in the request.
The response received from the HTTP request.
The file path where the response body value of this resource is saved
A timestamp of when the request was made, represented as an unsigned 64-bit integer.
The timeout duration (in seconds) for the HTTP request. Defaults to 60 seconds.
Returns the class of this.
this
Returns a string representation of this.
This method is used to convert the values of string interpolation expressions to strings.
Returns this |> transform if this is non-null, and null otherwise.
this |> transform
null
This method is the complement of the ?? operator and the equivalent of an Option type's map and flatMap methods.
??
Option
map
flatMap
Tells if this object has a property with the given name.
name
Returns the value of the property with the given name.
Throws if a property with this name does not exist.
Returns null if a property with this name does not exist.
Converts this object to a Dynamic object.
Dynamic
Converts this object to a Map.
Map
Class representing an HTTP client resource, which includes details about the HTTP method, URL, request data, headers, and response.