OptionalafterOptionalfactorThe exponential factor to use.
OptionalmaxThe maximum time (in milliseconds) that the retried operation is allowed to run.
OptionalmaxThe maximum number of milliseconds between two retries.
OptionalmethodsThe methods to retry
OptionalminThe number of milliseconds before starting the first retry.
OptionalrandomizeRandomizes the timeouts by multiplying a factor between 1-2.
OptionalretriesThe maximum amount of times to retry the operation.
OptionalshouldDecide if a retry should occur based on the context. Returning true triggers a retry, false aborts with the error.
It is only called if retries and maxRetryTime have not been exhausted.
It is not called for TypeError (except network errors) and AbortError.
The context of the retry
OptionalstatusThe HTTP status codes allowed to retry.
OptionalunrefWhether to unref the setTimeout's.
The status codes to retry after
Request will wait until the date, timeout, or timestamp given in the Retry-After header has passed to retry the request. If Retry-After is missing, the non-standard RateLimit-Reset header is used in its place as a fallback. If the provided status code is not in the list, the Retry-After header will be ignored.