Lines Matching refs:retry
5 A handler class that implements the retry logic for a request.
12 …ndlers` (required) - Object containing the `dispatch` to be used on every retry, and `handler` for…
22 … **retry** `(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => void` (…
26 - **timeoutFactor** `number` (optional) - Factor to multiply the timeout by for each retry attempt.…
27 - **retryAfter** `boolean` (optional) - It enables automatic retry after the `Retry-After` header i…
29 - **methods** `string[]` (optional) - Array of HTTP methods to retry. Default: `['GET', 'PUT', 'HEA…
30 - **statusCodes** `number[]` (optional) - Array of HTTP status codes to retry. Default: `[429, 500,…
31 - **errorCodes** `string[]` (optional) - Array of Error codes to retry. Default: `['ECONNRESET', 'E…
35 - `state`: `RetryState` - Current retry state. It can be mutated.
36 - `opts`: `Dispatch.DispatchOptions & RetryOptions` - Options passed to the retry handler.
40 … Promise<Dispatch.DispatchResponse>` (required) - Dispatch function to be called after every retry.
52 // custom retry function
53 retry: function (err, state, callback) {