HTTP_OPTIONS
Sends an OPTIONS request: asks the server which methods an endpoint supports.
Many servers answer in the header allow.
Parameters and results
connectionSTRUCT c0de_net/http/HTTP_CONNECTION: the serverendpointSTRING: the path behind the base endpoint (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_OPTIONS
PARAMETER connection api ;
PARAMETER endpoint "/lamps" ;
RESULT headers answerHeaders