Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/ky/source/types/retry.ts>RetryOptions

🌳 Tiny & elegant JavaScript HTTP client based on the browser Fetch API
Go to Latest
interface RetryOptions
import { type RetryOptions } from "https://deno.land/x/ky@v0.31.4/source/types/retry.ts";

Properties

optional
limit: number

The number of times to retry failed requests.

optional
methods: string[]

The HTTP methods allowed to retry.

optional
statusCodes: number[]

The HTTP status codes allowed to retry.

optional
afterStatusCodes: number[]

The HTTP status codes allowed to retry with a Retry-After header.

optional
maxRetryAfter: number

If the Retry-After header is greater than maxRetryAfter, the request will be canceled.