Skip to content

httpDelete

Back to Index
httpDelete(uri: string): {
headers: { text -> text } | nothing
}

httpDelete effects allows a Reactor to make external HTTP DELETE requests.

Return Type

The effect will return the result from the request:

:{
statusCode: number
contentType: text
content: text
}

Security

All external requests must be done using HTTPS. It’s possible to restrict which hostnames are allowed on a system level by setting the reactors/effects/httpRequest/allowedHosts

Examples

POST request

from {
method = args => httpDelete('https://example.com') with {
headers = {
'Authorization' -> 'Bearer <token>'
}
}
}
Back to Index