API Core - v2.4.1
    Preparing search index...

    Interface HttpClientConfig

    Construction options for HttpClient.

    interface HttpClientConfig {
        baseURL: string;
        describeFailure?: (status: number, data: unknown) => string;
        dispatcher?: object;
        headers?: Record<string, string>;
        redaction?: Redaction;
        timeout: number;
    }
    Index
    baseURL: string
    describeFailure?: (status: number, data: unknown) => string

    The message a non-2xx response is thrown with. The core knows only the status; a dialect whose wire explains its refusals in the body hands the reader that surfaces the reason (Gizwits answers every error with an error_message), keeping the class, the snapshot and the redaction the core's.

    dispatcher?: object
    headers?: Record<string, string>
    redaction?: Redaction
    timeout: number