foo-webview-sdk
    Preparing search index...

    Interface HttpGetSuccess

    Successful response from http.get.

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

    true in an async receipt.

    body?: string

    Response body, as text or Base64 according to responseType; present in a synchronous response.

    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"

    text or base64, the encoding of body; 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.