Optional
afterOptional
factorThe exponential factor to use.
Optional
maxThe maximum time (in milliseconds) that the retried operation is allowed to run.
Optional
maxThe maximum number of milliseconds between two retries.
Optional
methodsThe methods to retry
Optional
minThe number of milliseconds before starting the first retry.
Optional
randomizeRandomizes the timeouts by multiplying a factor between 1-2.
Optional
retriesThe maximum amount of times to retry the operation.
Optional
shouldDecide 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
Optional
unrefWhether 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.