Skip to main content

send_json_with_retry

Function send_json_with_retry 

Source
pub async fn send_json_with_retry<T: DeserializeOwned>(
    req: RequestBuilder,
    retry_config: &RetryConfig,
) -> Result<(T, HeaderMap)>
Expand description

Send a JSON request with custom retry configuration.

Note: Due to reqwest::RequestBuilder not implementing Clone, the retry config is currently unused for direct builder calls. Use with_retry for retryable requests.