RequestResilience
Defined in: src/fetch.ts:22
Per-request overrides: http(url, { resilience: { retries: 0 } }).
Type Parameters
Section titled “Type Parameters”R
Properties
Section titled “Properties”attemptTimeout?
Section titled “attemptTimeout?”
optionalattemptTimeout?:Duration
Defined in: src/fetch.ts:29
Budget per attempt for this request.
idempotent?
Section titled “idempotent?”
optionalidempotent?:boolean
Defined in: src/fetch.ts:31
Force (true) or forbid (false) retrying, whatever the method and headers.
retries?
Section titled “retries?”
optionalretries?:number|false
Defined in: src/fetch.ts:24
Retries for this request. false or 0: a single attempt.
retryOn?
Section titled “retryOn?”
optionalretryOn?:RetryOn<R>
Defined in: src/fetch.ts:25
timeout?
Section titled “timeout?”
optionaltimeout?:Duration
Defined in: src/fetch.ts:27
Budget for this request, retries included. Infinity disables it.