Prepares an HTTP DELETE request.
The URL to send the request to.
An object that can be used to configure and send the DELETE request.
Prepares an HTTP GET request.
The URL to send the request to.
An object that can be used to configure and send the GET request.
Prepares an HTTP POST request.
The URL to send the request to.
Optional
body: objectThe request body to send.
An object that can be used to configure and send the POST request.
Prepares an HTTP PUT request.
The URL to send the request to.
Optional
body: objectThe request body to send.
An object that can be used to configure and send the PUT request.
An interface describing HTTP clients.
Implementing classes are responsible for setting the content type header if needed. Implementations are also responsible for preventing response caching. If needed this can be done by adding a cache-bust query parameter.