Anchorage API reference
    Preparing search index...

    RequestInit subset the guarded fetch understands. Members it does not model (cache, credentials, cf, duplex, …) pass through to the base fetch untouched via the index signature.

    interface EgressRequestInit {
        body?: unknown;
        headers?: unknown;
        method?: string;
        redirect?: "error" | "follow" | "manual";
        signal?: unknown;
        [key: string]: unknown;
    }

    Indexable

    • [key: string]: unknown
    Index

    Properties

    body?: unknown

    Request body forwarded to the base fetch.

    headers?: unknown

    Header initializer forwarded to the base fetch.

    method?: string

    HTTP method. Defaults to the base fetch implementation's default.

    redirect?: "error" | "follow" | "manual"

    'follow' (default) follows redirects with a per-hop allowlist check. 'manual' and 'error' pass straight through to the base fetch — no hop happens here, so nothing escapes the initial check.

    signal?: unknown

    Cancellation signal forwarded to the base fetch.