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§
- Rate
Limiter - A simple rate limiter backed by a
tokio::sync::Semaphore. - Retry
Policy - Exponential backoff policy.
Enums§
- OpKind
- Whether the operation is safe to repeat after a failed attempt.
Functions§
- build_
http_ client - Build a configured
reqwest::Clientwith sensible defaults. - retry
- Run
op, retrying perpolicywhile failures stay retryable. - retry_
after_ secs - Parse a
Retry-Afterresponse header into seconds.