The URL to fetch. Validated up front — a malformed URL throws immediately rather than being retried, since it can never succeed.
Optionalinit: RequestInitStandard fetch request options (method, headers, body, signal, etc.).
Optionaloptions: FetchWithRetryOptionsOptions for configuring the retry policy.
The successful response.
Fetches
input, retrying on network errors and on responses whose status is deemed retryable (see FetchWithRetryOptions.isRetryableStatus), with exponential backoff (respecting aRetry-Afterheader when present). Gives up on receivingAbortErrorand does not retry.Callers are responsible for reading and validating the body themselves (e.g.
.json(),.text(), streaming, or their own size cap), which makes this suitable for arbitrary requests (custom methods, headers, bodies) rather than just simple GETs.