mwg API
    Preparing search index...

    Interface HttpTransportOptions

    interface HttpTransportOptions {
        allowInsecure?: boolean;
        endpoint: string;
        fetch?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | URL | Request, init?: RequestInit): Promise<Response>;
        };
        maxResponseBytes?: number;
        timeoutMs?: number;
    }

    Hierarchy (View Summary)

    Index
    allowInsecure?: boolean

    accept http:// to a host other than this machine; off by default

    endpoint: string
    fetch?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | URL | Request, init?: RequestInit): Promise<Response>;
    }

    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>

    maxResponseBytes?: number

    largest response body read, in bytes; defaults to 10 MB

    timeoutMs?: number