pub async fn send_with_retry(
builder: RequestBuilder,
policy: &RetryPolicy,
) -> Result<Response, Error>Expand description
Async retry wrapper for streaming providers.
Uses RequestBuilder::build_split() so builder-chain errors
(illegal header value, bad URL, JSON serialization failure)
surface as a real reqwest::Error on the return path instead
of crashing the process. A pasted api_key with a trailing
newline is the classic trigger — historically this produced
panicked at .../retry.rs:94: send_with_retry: request body must be cloneable (no streams) with no path to recovery.