OptionalbaseOptionalretryDefault retry config
Default timeout config. attemptMs is required — pass Infinity to
explicitly opt out of a per-attempt cap, so "no timeout" is always a
deliberate choice rather than an accidental default.
OptionalconcurrencyGlobal concurrency across all partitions.
OptionalmaxMax requests queued globally (across all partitions) waiting for a concurrency permit before new requests are rejected with QueueFullError.
OptionalpartitionsPer-partition overrides. Partitions not listed here use
defaultPartition. A listed partition does not inherit from it.
OptionaldefaultConfig for every partition not listed in partitions, merged the same
way a listed entry is: client → partition → request. Fields left unset
keep their defaults (concurrency DEFAULT_CONCURRENCY,
maxQueueSize DEFAULT_MAX_QUEUE_SIZE).
OptionalcircuitDefault circuit breaker config. Opt-in — inert unless enabled: true.
OptionalretryDefault per-partition retry budget. Opt-in — no budget unless set.
OptionalrateDefault per-partition rate limit. Opt-in — no limit unless set.
OptionalloggerOptional structured logger. A logger that throws never affects a request: the error is rethrown on a microtask (reaching uncaughtException), like a throwing listener.
OptionalmetricsOptional metrics sink for counters, histograms, and gauges.
OptionalredactRedact query parameter values in logged URLs.
OptionalfetchCustom fetch function (defaults to globalThis.fetch).
Optionalinit: RequestInitOptionalinit: RequestInitOptionalredirectRedirect mode passed to fetch on every attempt. Use "manual" when the
caller must vet each hop itself (e.g. an SSRF guard): a 3xx then comes back
as an HttpError whose response carries the Location header.
Base URL prepended to all requests