Setu-TS
    Preparing search index...

    Interface HttpIndicatorOptions

    Options for creating an HTTP probe indicator.

    0.2.0

    interface HttpIndicatorOptions {
        fetcher?: {
            (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
            (input: string | Request | URL, init?: RequestInit): Promise<Response>;
        };
        timeoutMs?: number;
        url: string;
    }
    Index
    fetcher?: {
        (input: URL | RequestInfo, init?: RequestInit): Promise<Response>;
        (input: string | Request | URL, init?: RequestInit): Promise<Response>;
    }

    Injectable fetcher for testing.

    Defaults to globalThis.fetch.

    Type Declaration

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

        • input: URL | RequestInfo
        • Optionalinit: RequestInit

        Returns Promise<Response>

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

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

        Returns Promise<Response>

    timeoutMs?: number

    Timeout in milliseconds for the request.

    Defaults to 5000 (5 seconds).

    url: string

    The URL to probe.