Available on crate feature
http only.Expand description
Production HTTP client with automatic retries and timeouts.
Wraps reqwest with reqwest_middleware and reqwest_retry to
provide exponential backoff for transient errors (5xx, timeouts,
connection failures). Non-retryable errors (4xx) return immediately.
§Config Cascade
When the config feature is enabled, config is auto-loaded from the
cascade under the http_client key:
http_client:
timeout_secs: 30
connect_timeout_secs: 10
max_retries: 3
min_retry_interval_ms: 100
max_retry_interval_ms: 30000
user_agent: "dfe-fetcher/1.0"Re-exports§
pub use config::HttpClientConfig;
Modules§
- config
- HTTP client configuration with config cascade support.
Structs§
- Http
Client - Production HTTP client with retry middleware.
Enums§
- Http
Client Error - HTTP client build error.