Sets a header.
The name for the header.
The value for the header.
This HTTP request object.
Adds a query parameter. Should do nothing if the value is undefined.
The name for the query parameter.
Optional
value: string | number | booleanThe value for the query parameter.
This HTTP request object.
Adds several query parameters with the same name. Should do nothing if the value is undefined.
The name for each of the query parameters.
Optional
values: string[] | number[] | boolean[]The values for the query parameters.
This HTTP request object.
Sends the HTTP request.
A promise that contains the HTTP response.
An interface describing an HTTP request to be sent.