Function create_retryable_http_client

Source
pub fn create_retryable_http_client<S>(
    config: &HttpRetryConfig,
    base_client: Client,
    custom_strategy: Option<S>,
) -> ClientWithMiddleware
where S: RetryableStrategy + Send + Sync + 'static,
Expand description

Creates a retryable HTTP client with middleware for a single URL

§Parameters:

  • config: Configuration for retry policies
  • base_client: The base HTTP client to use
  • custom_strategy: Optional custom retry strategy, complementing the default retry behavior

§Returns

A ClientWithMiddleware that includes retry capabilities