UNPKG

1.2 kBPlain TextView Raw
1/**
2 * -------------------------------------------------------------------------------------------
3 * Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License.
4 * See License in the project root for license information.
5 * -------------------------------------------------------------------------------------------
6 */
7
8/**
9 * @enum
10 * Enum for ResponseType values
11 * @property {string} ARRAYBUFFER - To download response content as an [ArrayBuffer]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer}
12 * @property {string} BLOB - To download content as a [binary/blob] {@link https://developer.mozilla.org/en-US/docs/Web/API/Blob}
13 * @property {string} DOCUMENT - This downloads content as a document or stream
14 * @property {string} JSON - To download response content as a json
15 * @property {string} STREAM - To download response as a [stream]{@link https://nodejs.org/api/stream.html}
16 * @property {string} TEXT - For downloading response as a text
17 */
18
19export enum ResponseType {
20 ARRAYBUFFER = "arraybuffer",
21 BLOB = "blob",
22 DOCUMENT = "document",
23 JSON = "json",
24 RAW = "raw",
25 STREAM = "stream",
26 TEXT = "text",
27}