Optional
baseOptional
circuitOptional
consoleOptional
defaultSet default headers for each request.
Optional
defaultSet default headers for each request of a specified method type. These are merged with defaultHeaders, if they are set as well. (set a header to undefined or "" to remove it)
Optional
defaultBy default, status codes >= 400 are treated as errors, other than in standard fetch. This can be disabled and the standard fetch behaviour restored, by setting this flag. Besides the client-wide setting, there is also the possibility to set skipFailOnErrorCode per request.
Optional
fetchDefaults to globalThis.fetch / window.fetch
Optional
parallelOptional
retriesOptional
timeoutThis is a per-request timeout not taking into account possible retries. The total duration of a call to client.fetch() can therefore exceed this limit, if retries are configured.
Optional
timeoutThis is an overall timeout after considering retries. The total duration of a fetch call should never exceed this limit.
Resilience configuration for a fetch client