Class representing an HTTP request.
The HTTP method to use for the request. This is an instance of the Method enum.
A lambda function with the request options. This object is used to specify the body, headers and other request parameters.
The URL to which the request is to be sent.
Executes a synchronous HTTP request, downloading the entire response body at once.
Executes a streaming HTTP request, downloading the response body in chunks.