pub async fn send_with_retry<F>(
config: &HttpClientConfig,
build_request: F,
) -> Result<Response>where
F: Fn() -> RequestBuilder,Expand description
Send HTTP request with automatic retry on 429/5xx and network errors
Inspects the HTTP response status code and retries on retryable status codes
(408, 429, 5xx). Also respects the Retry-After header for rate limiting.
The closure should return a reqwest::RequestBuilder (not a future),
which will be rebuilt on each retry attempt.