This class is used to build a request
The url of the request
The body of the request. (Set to empty string to ignore). Defaults to empty string
The headers of the request. Defaults to map with User-Agent
The method of the request. Defaults to GET
The timeout of the request (Set to -1 to disable). Defaults to -1
True if the request should use the cache, false otherwise. Defaults to true
Sets the body of the request
Sends the request and returns a response
Sets the request method to DELETE
Sets the request method to GET
Sets the header of the request. If the header already exists, it will be overwritten
Sets the request method to POST
Sets the request method to PUT
Sets the timeout of the request
Sets if the request should use the cache