HTTP_DELETE
Sends a DELETE request: removes something on the server.
Some APIs expect data with it, most don't.
Parameters and results
connectionSTRUCT c0de_net/http/HTTP_CONNECTION: the serverendpointSTRING: the path behind the base endpoint (optional, default empty)dataSTRING: the data sent with the request, in UTF-8 (optional, default empty)- result
resultSTRING: the raw data of the answer - result
statusINTEGER: the HTTP status - result
headersHASH STRING: the headers of the answer
Example
c0de
CALL c0de_net/http/HTTP_DELETE
PARAMETER connection api ;
PARAMETER endpoint "/timers/3" ;
RESULT status status