You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/docs/api/RetryAgent.md
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ Returns: `ProxyAgent`
16
16
17
17
### Parameter: `RetryHandlerOptions`
18
18
19
+
-**throwOnError**`boolean` (optional) - Disable to prevent throwing error on last retry attept, useful if you need the body on errors from server or if you have custom erro handler. Default: `true`
19
20
-**retry**`(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => void` (optional) - Function to be called after every retry. It should pass error if no more retries should be performed.
20
21
-**maxRetries**`number` (optional) - Maximum number of retries. Default: `5`
21
22
-**maxTimeout**`number` (optional) - Maximum number of milliseconds to wait before retrying. Default: `30000` (30 seconds)
-**throwOnError**`boolean` (optional) - Disable to prevent throwing error on last retry attept, useful if you need the body on errors from server or if you have custom erro handler.
22
23
-**retry**`(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => number | null` (optional) - Function to be called after every retry. It should pass error if no more retries should be performed.
23
24
-**maxRetries**`number` (optional) - Maximum number of retries. Default: `5`
24
25
-**maxTimeout**`number` (optional) - Maximum number of milliseconds to wait before retrying. Default: `30000` (30 seconds)
0 commit comments