Skip to main content

Module http

Module http 

Source

Structs§

RetryConfig
Configuration for retry behavior

Constants§

DEFAULT_BACKOFF_MULTIPLIER
DEFAULT_INITIAL_BACKOFF_MS
DEFAULT_MAX_BACKOFF_MS
DEFAULT_MAX_RETRIES
Default retry configuration
MAX_SSE_BUFFER_SIZE
Maximum buffer size for SSE streaming (16MB)

Functions§

send_json
Send a JSON request and parse the response.
send_json_once
Execute a request once without retries.
send_json_with_retry
Send a JSON request with custom retry configuration.
with_retry
Helper to execute a request-building closure with retry logic.