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.
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
url | string | The address to fetch. |
options | GuardedFetchOptions | Cap, headers, fetch, and timeout overrides. |
Returns
Section titled “Returns”Promise<FetchedPage>
The decoded body and, when the resource moved, its new home.