This App has been replaced by the built-in CSML HTTP client. Check the documentation here: https://docs.csml.dev/language/standard-library/http
Perform any HTTP request easily with this function. Supports any HTTP verb and JSON APIs.
Usage
App("utils/http", url="https://example.com", action="POST", body=Object(some="value"), headers=Object(Authorization="bearer token"))
This function supports all valid HTTP verbs.
Body must be JSON in both request and response.
Headers are presented as an object of key-value pairs.
All parameters are optional, except url
and action
parameters.