interface HttpsResponseLegacy<T> {
    contentLength: number;
    toArrayBuffer(): ArrayBuffer;
    toArrayBufferAsync(): Promise<ArrayBuffer>;
    toFile(destinationFilePath): Promise<File>;
    toImage(): Promise<ImageSource>;
    toJSON(): T;
    toJSONAsync(): Promise<T>;
    toString(): string;
    toStringAsync(): Promise<string>;
}

Type Parameters

  • T = any

Properties

contentLength: number

Methods

  • Returns ArrayBuffer

  • Returns Promise<ArrayBuffer>

  • Parameters

    • destinationFilePath: string

    Returns Promise<File>

  • Returns Promise<ImageSource>

  • Returns T

  • Returns Promise<T>

  • Returns string

  • Returns Promise<string>