OptionalallowOptionaldelayDelay strategy — fixed ms, or a function returning ms
Max number of retry attempts (default: 0)
OptionalmethodsMethods that are retryable (default: GET, HEAD, OPTIONS, DELETE, PUT)
OptionalonRetry on network errors (default: true)
OptionalonCalled before each retry
OptionalstatusHTTP status codes that trigger a retry (default: [408,429,500,502,503,504])
Additional methods to allow retrying on top of the defaults. Use this instead of
methodswhen you only want to add POST/PATCH without replacing the entire default list. e.g.allowMethods: ['POST']adds POST retries while keeping all defaults.