HttpClientWithRetry overview
HTTP Client Wrapper with Retry Logic
Wraps the base HttpClient to add automatic retry logic for transient failures. This is a cross-cutting concern applied via the wrapper layer pattern.
Added in v0.3.0
Table of contents
layers
HttpClientWithRetry
Wrapper layer that adds retry logic to HttpClient.
Wraps the execute method to apply RetryService logic to all HTTP requests. The wrapper requires both the underlying HttpClient and RetryService, then provides a new HttpClient with retry built-in.
Composability: This layer can be composed with other wrappers (e.g., caching, metrics).
Signature
export declare const HttpClientWithRetry: Layer.Layer<
HttpClient.HttpClient,
never,
HttpClient.HttpClient | RetryService
>
Added in v0.3.0