foo-webview-sdk
    Preparing search index...

    Interface HttpHeadSuccess

    Successful response from http.head.

    interface HttpHeadSuccess {
        async?: boolean;
        body?: string;
        contentLength?: number;
        headers?: Record<string, string>;
        requestId?: string;
        responseType?: "text" | "base64";
        status?: number;
        success: true;
    }
    Index
    async?: boolean

    true in an async receipt.

    body?: string

    Always empty; present in a synchronous response.

    contentLength?: number

    The Content-Length header as a number; present in a synchronous response when the server sends one that parses.

    headers?: Record<string, string>

    Response headers by name; of repeated headers the last one wins. Present in a synchronous response.

    requestId?: string

    Id of the request; present in an async receipt. http:response and http.abort use it.

    responseType?: "text" | "base64"

    Always text; present in a synchronous response.

    status?: number

    HTTP status code; present in a synchronous response.

    success: true

    Always true here; a failed call resolves with ApiFailure instead.