Interface HttpClientConstructorOptions

interface HttpClientConstructorOptions {
    cacheTime?: number;
    compatible18?: boolean;
    fetchFunction?: {
        (input, init?): Promise<Response>;
        (input, init?): Promise<Response>;
    };
    headers?: {
        [key: string]: string;
    };
    insecure?: boolean;
    useCache?: boolean;
}

Properties

cacheTime?: number
compatible18?: boolean
fetchFunction?: {
    (input, init?): Promise<Response>;
    (input, init?): Promise<Response>;
}

Type declaration

    • (input, init?): Promise<Response>
    • Parameters

      • input: RequestInfo | URL
      • Optional init: RequestInit

      Returns Promise<Response>

    • (input, init?): Promise<Response>
    • Parameters

      • input: string | Request | URL
      • Optional init: RequestInit

      Returns Promise<Response>

headers?: {
    [key: string]: string;
}

Type declaration

  • [key: string]: string
insecure?: boolean
useCache?: boolean

Generated using TypeDoc