kernl API
    Preparing search index...

    Interface HttpBridgeOptions

    Construction options for the HTTP bridge.

    interface HttpBridgeOptions {
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        policy?: Partial<HttpPolicy>;
        resolveHost?: (host: string) => Promise<readonly string[]>;
    }
    Index
    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    The fetch implementation; the global one by default.

    Type Declaration

      • (input: URL | RequestInfo, init?: RequestInit): Promise<Response>
      • Parameters

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

      • (input: string | URL | Request, init?: RequestInit): Promise<Response>
      • Parameters

        • input: string | URL | Request
        • Optionalinit: RequestInit

        Returns Promise<Response>

    policy?: Partial<HttpPolicy>

    Overrides merged over DEFAULT_HTTP_POLICY.

    resolveHost?: (host: string) => Promise<readonly string[]>

    Resolves a hostname to its addresses so that names pointing at private ranges are blocked.