Ixxerja permezz ta’


HttpRetryPolicy interface

Policy that defines http request retry conditions

Properties

errors

Errors that can trigger a retry

headers

Headers that must be present for a request to be retried

httpStatusCodes

Additional http status codes that can trigger a retry

initialDelayInMilliseconds

Initial delay, in milliseconds, before retrying a request

maxIntervalInMilliseconds

Maximum interval, in milliseconds, between retries

maxRetries

Maximum number of times a request will retry

Property Details

errors

Errors that can trigger a retry

errors?: string[]

Property Value

string[]

headers

Headers that must be present for a request to be retried

headers?: HeaderMatch[]

Property Value

httpStatusCodes

Additional http status codes that can trigger a retry

httpStatusCodes?: number[]

Property Value

number[]

initialDelayInMilliseconds

Initial delay, in milliseconds, before retrying a request

initialDelayInMilliseconds?: number

Property Value

number

maxIntervalInMilliseconds

Maximum interval, in milliseconds, between retries

maxIntervalInMilliseconds?: number

Property Value

number

maxRetries

Maximum number of times a request will retry

maxRetries?: number

Property Value

number