SDK Reference
http
The http
module provides functions for making HTTP requests.
Allowed in
- build
- deploy
- destroy
- task
- trigger_sync
Usage
Load the module:
Example
API Reference
get(url, headers=)
Makes a GET request to the given URL.
Arguments
url
: The URL to make the request toheaders
: Optional dictionary of headers to include in the request
Returns
- Response object containing status code, headers, and body
post(url, data=None, headers=)
Makes a POST request to the given URL.
Arguments
url
: The URL to make the request todata
: Optional data to send in the request bodyheaders
: Optional dictionary of headers to include in the request
Returns
- Response object containing status code, headers, and body