Begins a request, optionally passing a body to be added
If the response status code is not success (< 200 or >= 300), then the promise is rejected
Gets a header from the headers data
the name of the desired header
the value for the header if it exists, undefined
otherwise
Sets a new HTTP header for the request.
If the header was already set, then its value is updated.
Sets new HTTP headers for the request.
Internally, it calls setHeader
for each defined key/value pair of the headers parameter
A hash table containing the header name as its key, and the header contents as its value.
Sets the URL for the request.
Supported protocols are HTTP and HTTPS.
Generated using TypeDoc
Class used internally for every request