Skip to main content

Module http

Module http 

Source
Expand description

HTTP client utilities

Provides retry logic, timeouts, and HTTP client configuration.

Structs§

HttpClientConfig
HTTP client configuration

Constants§

ALLOWED_DOMAINS
Allowed domains for custom API calls (APS domains only)

Functions§

is_allowed_url
Check if a URL is allowed (belongs to an APS domain)
is_retryable_status
Check if an HTTP status code is retryable (rate limit or server error)
retry_delay_from_response
Calculate retry delay from response headers or exponential backoff
send_with_retry
Send HTTP request with automatic retry on 429/5xx and network errors