Skip to content

fetchPageWithMeta

function fetchPageWithMeta(url: string, options?: GuardedFetchOptions): Promise<FetchedPage>;

fetchPage plus what the fetch learned about the address itself.

movedPermanentlyTo is set only when the chain began with 301/308 — the resource announcing a new home, as opposed to a 302 routing this request somewhere today. Callers that track where a subscription lives read this; everyone else uses fetchPage and never sees it.

ParameterTypeDescription
urlstringThe address to fetch.
optionsGuardedFetchOptionsCap, headers, fetch, and timeout overrides.

Promise<FetchedPage>

The decoded body and, when the resource moved, its new home.