Anchorage API reference
    Preparing search index...

    Response subset a guarded fetch resolves to — members every fetch implementation provides. The guard returns the base fetch's response OBJECT untouched (it only reads status + the location header off intermediate 3xx hops), so a connector needing more (streaming body, clone) can safely cast back to its own runtime's Response type — the underlying value IS that Response, nothing is wrapped or consumed.

    interface EgressResponse {
        headers: EgressResponseHeaders;
        ok: boolean;
        status: number;
        statusText: string;
        url: string;
        arrayBuffer(): Promise<ArrayBuffer>;
        json(): Promise<unknown>;
        text(): Promise<string>;
    }
    Index

    Properties

    Response headers.

    ok: boolean

    Whether the status is in the successful 200–299 range.

    status: number

    Numeric HTTP status code.

    statusText: string

    HTTP status text supplied by the transport.

    url: string

    Final response URL reported by the transport.

    Methods