OptionalbaseOptionalmaxHard cap on response body size in bytes (defends against memory exhaustion from a hostile/buggy endpoint). Defaults to 100 MiB; set to 0 for no limit.
OptionalmaxNumber of automatic retries for transient (429/503) responses.
OptionalretryBase backoff between retries in milliseconds. Grows linearly per attempt,
unless the response carries a Retry-After header, which takes precedence.
OptionalsleepInjectable sleep, primarily for deterministic tests.
OptionaltimeoutTime limit per request in milliseconds, covering the whole response body, not
only idle gaps (0 disables; capped at MAX_TIMEOUT_MS, 2^31 - 1 ms).
OptionaltransportSwappable transport. Defaults to the built-in node http/https transport.
OptionaluserValue of the User-Agent header. The Routing API applies bot detection to the User-Agent: the default is accepted, but some UA strings are blocked with a 403. An empty or whitespace-only value falls back to the default.
Base URL of the API. Defaults to the production routing service.