OptionalbaseOptionaldefaultExtra headers sent on every request (e.g. the Authorization API key).
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.
OptionaltimeoutPer-request timeout in milliseconds (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.
OptionalwarnOptional diagnostic sink for non-fatal warnings (e.g. a followed
https:->http: redirect downgrade). Defaults to a no-op so the client
stays silent as a library; the CLI wires it to stderr.
Base URL of the API. Defaults to https://api.deutsche-digitale-bibliothek.de