Functions for calling external APIs and sites.
Use this to get the user's IP address from the current request.
Downloads text from specified URL.
Downloads text from specified URL and BASE64 encodes it.
Calls specified web service and expects JSON. Parses JSON to object.
Calls specified web service with method PUT. Expects JSON. Parses JSON to object.
Calls specified web service with HTTP POST, sending a JSON body. Expects JSON in the response and parses it to an object.
Same as httpPost, but values are posted as form fields instead of a JSON body.
Returns a file by name from the uploaded form as a base64 encoded string.
Returns an array of uploaded files. Use this function to support uploading files through your custom Docly pure JS APIs.