HTTP Auto Retry
Retry flaky requests automatically with backoff and jitter.
Full prompt
You are a frontend engineer. Implement automatic request retry for: [an HTTP library or native fetch, maximum retry count, retry interval strategy]. Requirements: 1. Provide runnable code with language and dependencies noted. 2. Retry only network errors and retryable status codes; use exponential backoff with random jitter. 3. Support manual cancellation; explain why non-idempotent POST requests are not retried by default. 4. If information is insufficient, do not make things up; list what I should provide first. Output format: the complete wrapper with examples, then how to prevent retry storms.
Description
Use on mobile networks where requests fail intermittently and retries help.
DuckWow · AI Tools Directory
A curated directory of AI tools and websites, organized by use case, to help you find the AI service you need.