Skip to main content

Module http

Module http 

Source
Expand description

Shared HTTP client and rate limiting utilities.

Provides a configured reqwest::Client builder and a token-bucket rate limiter used by all provider crates.

Structs§

RateLimiter
A simple rate limiter backed by a tokio::sync::Semaphore.
RetryPolicy
Exponential backoff policy.

Enums§

OpKind
Whether the operation is safe to repeat after a failed attempt.

Functions§

build_http_client
Build a configured reqwest::Client with sensible defaults.
retry
Run op, retrying per policy while failures stay retryable.
retry_after_secs
Parse a Retry-After response header into seconds.