Optional
abilityOptional
callProtected
headersStatic
fromSend a HTTP DELETE request to the specified url. Optionally it is possible to chain definitions for headers and data as well as the expected response type.
the URL of the target.
new instance
simple request
Delete.from('https://my-fancy-url.com');
with chained definitions
Delete.from('https://my-fancy-url.com')
// add headers
.withHeaders({
key: value,
})
// add data
.withData({
key: value,
})
// define expected response format
.withResponseFormat('text');
Set the format the response body should be returned as.
the format of the response body.
the existing instance
Generated using TypeDoc
Action Class. Send a HTTP DELETE Request.