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
* @prop {number} params.timeout - Optional number of milliseconds before the request times out. Default is 30000
20
-
* @prop {number} params.retryLimit - Optional number of retries before failure. Default is 5
21
-
* @prop {number} params.retryDelay - The number of miliseconds to use for operation retries. Default is 300ms
22
-
* @prop {Function} params.retryCondition - A function to determine if the error can be retried. Default retry is on status 429.
23
-
* @prop {number} params.retryDelayOptions.base - The base number of milliseconds to use in the exponential backoff for operation retries.
24
-
* @prop {Function} params.retryDelayOptions.customBackoff - A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds.
25
-
* @prop {number} params.maxContentLength - Optional maximum content length in bytes (default: 1073741824 i.e. 1GB)
26
-
* @prop {string} params.application - Application name and version e.g myApp/version
27
-
* @prop {string} params.integration - Integration name and version e.g react/version
28
-
* @returns Contentstack.Client
15
+
*
29
16
* @example
30
17
* import * as contentstack from '@contentstack/management'
* @prop {Function=} params.retryDelayOptions.customBackoff - A custom function that accepts a retry count and error and returns the amount of time to delay in milliseconds. (if you want not to retry for specific condition return -1)
74
+
* @example Set a custom backoff function to provide delay of 500 ms on retryCount < 3 and -1 for retryCount >= 3values on retries
75
+
* import * as contentstack from '@contentstack/management'
0 commit comments