c0de net 0.1.0Diese Seite auf Deutsch

HTTP_DELETE ​

Sends a DELETE request: removes something on the server.

Some APIs expect data with it, most don't.

Parameters and results

  • connection STRUCT c0de_net/http/HTTP_CONNECTION: the server
  • endpoint STRING: the path behind the base endpoint (optional, default empty)
  • data STRING: the data sent with the request, in UTF-8 (optional, default empty)
  • result result STRING: the raw data of the answer
  • result status INTEGER: the HTTP status
  • result headers HASH STRING: the headers of the answer

Example

c0de
CALL c0de_net/http/HTTP_DELETE
    PARAMETER connection api ;
    PARAMETER endpoint "/timers/3" ;
    RESULT status status