Anchorage API reference
    Preparing search index...

    Configuration for egressFetch.

    interface EgressFetchOptions {
        denied?: (denial: EgressDenial) => Error;
        fetch?: EgressFetchBase;
        maxRedirects?: number;
    }
    Index

    Properties

    denied?: (denial: EgressDenial) => Error

    Map a denial to the error thrown to the caller — the audit seam (createConnector records the denial and returns a ConnectorPolicyError here). Default: new EgressDeniedError(denial).

    Base fetch the guard wraps. Defaults to the runtime's global fetch, resolved per call.

    maxRedirects?: number

    Redirect hops followed before throwing a TypeError (default 20, the fetch spec's cap).