delete
delete
Performs an HTTP DELETE request on a resource.
Parameters
| Name | Type | Description |
|---|---|---|
url | String | The URL to request |
headers | Map? | Request headers. Optional (null). Merged into the default headers (Content-Type: application/json, Accept: application/json) before sending |
jsCallback | JSFunction? | The callback that receives the response |
Callback
Invoked as jsCallback(statusCode, headers, body).
| Argument | Type | Description |
|---|---|---|
statusCode | number | The response status code |
headers | Map | The response headers |
body | String | The response body |
Returns: void
Example
$http.delete("https://api.example.com/user/1", {}, function (status, headers, body) {
$log.d(status, body);
});