Skip to main content

Module requests

Module requests 

Source
Expand description

HTTP request primitives: GET, POST, signed GET, response parsing, retry-with-backoff.

Structs§

RequestAuth
Bundles application credentials and user token for signed API requests.

Functions§

build_url_with_params
Builds a full URL with query parameters from an endpoint path.
download_stream
Sends a GET request to an authenticated endpoint for binary download.
post
Sends a POST request with form parameters and parses the JSON response.
retry_with_backoff
Retries a GET request with exponential backoff on rate limiting (HTTP 429).
signed_get
Sends a signed GET request and parses the JSON response.
signed_post
Sends a signed POST request with form parameters and parses the JSON response.