Skip to content

GuardedFetchOptions

Options shared by every helper here.

PropertyTypeDescription
fetch?FetchLikeThe fetch to call. Pass the one the host handed the source, so its own egress rules still apply; omit it and the global one is read at call time (not at import time, so a host that installs its own afterwards still wins).
headers?Record<string, string>Extra request headers, merged OVER the defaults rather than replacing them.
maxBytes?numberRaise the size cap for a document class that is legitimately larger than an article — a podcast feed carries every episode ever published, and the busiest run past 17 MB against the 10 MB default.
timeoutMs?numberOverride the per-request ceiling for a host known to be slow.