OptionalfetchCustom fetch implementation.
Defaults to globalThis.fetch.
Optionalinit: RequestInitOptionalinit: RequestInitOptionalstrictWhen true, invalid headers cause a KinetexError instead of being
silently dropped. Recommended for strict/production environments where
silent data loss is unacceptable.
Default: false (drop & warn).
OptionalonCalled whenever a header is dropped due to an invalid name or value. Useful for logging or monitoring header sanitization in non-strict mode.
The header name that was dropped.
The header value that was dropped.
OptionaldispatcherA fetch implementation extension passed straight through to the runtime,
most usefully an undici dispatcher (Agent, ProxyAgent, MockAgent).
Typed as unknown so this stays dependency-free — kinetex never imports,
constructs, or type-checks against undici, it only forwards the value.
Whether the runtime honours it is up to that runtime: Node's fetch reads
init.dispatcher, Deno and Bun ignore it.
Supplying a dispatcher forces FetchTransport, because the Node
HTTP/2 transport talks to node:http2 directly and has no notion of one.
Options for the universal fetch-based transport.