Expand description
HTTP client utilities
Provides retry logic, timeouts, and HTTP client configuration.
Structs§
- Http
Client Config - 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