OptionalbaseOptionalheadersExtra headers sent on every request (e.g. an Authorization token for a future authenticated endpoint). Credential-bearing headers (Authorization, Cookie, X-API-Key) are automatically stripped when a redirect crosses to a different origin, so they never leak to an arbitrary host named in Location.
OptionalmaxNumber of HTTP redirects (301/302/303/307/308) to follow. Defaults to 5.
OptionalmaxHard 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).
OptionalsleepInjectable sleep, primarily for deterministic tests.
OptionaltimeoutTime limit per request in milliseconds, covering the whole response body, not only idle gaps (0 disables).
OptionaltransportSwappable transport. Defaults to the built-in node http/https transport.
OptionaluserValue of the User-Agent header.
Base URL of the API. Defaults to https://www.lobbyregister.bundestag.de