The RetryableHttpClient class extends the functionality of a basic HTTP client by adding automatic retry logic for failed requests. This is particularly useful for improving the resilience of applications that depend on unreliable network connections or external services that may experience intermittent failures.

This class includes methods for:

  • Configuring retry policies, including the number of retries and delay between retries.
  • Making HTTP requests with automatic retries on failure.
  • Handling different types of HTTP responses and errors.

The RetryableHttpClient is designed to be used in scenarios where you need to make HTTP requests that may occasionally fail and need to be retried. It ensures that transient errors do not cause the application to fail, improving overall reliability and user experience.

This class builds on top of a basic HTTP client and adds retry logic. It uses custom error handling and response parsing methods to ensure that retries are only attempted for transient errors and not for permanent failures.

Hierarchy (view full)

Constructors

Methods