Sets the authorization header using a key
The value of the authorization header.
Sets request's credentials.
A string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL.
Sets the error response handler. Error response handlers have a generic but due to typescript limitations, this value will not be propagated to the Promise catch statement
Sets the body of the client request.
The object to be written to the request body as form data.
Adds a header to the request.
The name of the header.
The value of the header.
Sets the body of the client request.
The object to be written to the request body as JSON.
Sets the http method for the request
Adds parameters to the request.
The name of the parameter.
The value of the parameter, may be a string, object or number.
Sets the response handler. This could do processing before the ClientResponse is returned depending on the APIs expected response.
Sets the uri of the request
Adds a segment to the request uri
Generated using TypeDoc
Run the request and return a promise. This promise will resolve if the request is successful and reject otherwise.