可选last可选onAfter all the retries are failed, this callback will be called with the last error before throwing the error.
可选onA callback to get notified when a retry occurs, the number of times it has occurred, and the error
可选retriesThe number of times to retry before failing default: 3
可选retryA callback to further control if a request should be retried. default: it retries if it is a network error or a 5xx error on an idempotent request (GET, HEAD, OPTIONS, PUT or DELETE).
可选retryThe number of times the request was retried
可选retryA callback to further control the delay between retry requests. By default there is no delay.
可选shouldDefines if the timeout should be reset between retries default: false
可选validateA callback to define whether a response should be resolved or rejected. If null is passed, it will fallback to the axios default (only 2xx status codes are resolved).
The last time the request was retried (timestamp in milliseconds)