Sends a delete request.
Url to resource (for instance my_addon/endpoint).
Optional options: HttpOptionsThe HTTP options to send with the request.
Sends a get request.
Url to resource (for instance my_addon/endpoint).
Optional options: HttpOptionsThe HTTP options to send with the request.
Sends a patch request.
Url to resource (for instance my_addon/endpoint).
Optional data: objectPayload to send to the server.
Optional options: HttpOptionsThe HTTP options to send with the request.
Sends a post request.
Url to resource (for instance my_addon/endpoint).
Optional data: objectPayload to send to the server.
Optional options: HttpOptionsThe HTTP options to send with the request.
Sends a put request.
Url to resource (for instance my_addon/endpoint).
Optional data: objectPayload to send to the server.
Optional options: HttpOptionsThe HTTP options to send with the request.
HTTP service for sending requests to a given URL
By default, the service will work with the JSON data format. If anything but JSON is returned from the endpoint, the
responseTypeproperty in theoptionsparameter needs to be set.