pub fn create_retryable_http_client<S>(
config: &HttpRetryConfig,
base_client: Client,
custom_strategy: Option<S>,
) -> ClientWithMiddleware
Expand description
Creates a retryable HTTP client with middleware for a single URL
§Parameters:
config
: Configuration for retry policiesbase_client
: The base HTTP client to usecustom_strategy
: Optional custom retry strategy, complementing the default retry behavior
§Returns
A ClientWithMiddleware
that includes retry capabilities