JavaScript Tested
Respect Retry-After on 429 and 503 responses
Retry rate-limited requests after the delay the server asks for, instead of guessing.
Loading snippets…
2 snippets
Retry rate-limited requests after the delay the server asks for, instead of guessing.
A fetch wrapper that throws on HTTP errors and validates the JSON body with a type guard.