UNPKG

1.44 kBJavaScriptView 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 * @enum
9 * Enum for ResponseType values
10 * @property {string} ARRAYBUFFER - To download response content as an [ArrayBuffer]{@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer}
11 * @property {string} BLOB - To download content as a [binary/blob] {@link https://developer.mozilla.org/en-US/docs/Web/API/Blob}
12 * @property {string} DOCUMENT - This downloads content as a document or stream
13 * @property {string} JSON - To download response content as a json
14 * @property {string} STREAM - To download response as a [stream]{@link https://nodejs.org/api/stream.html}
15 * @property {string} TEXT - For downloading response as a text
16 */
17export var ResponseType;
18(function (ResponseType) {
19 ResponseType["ARRAYBUFFER"] = "arraybuffer";
20 ResponseType["BLOB"] = "blob";
21 ResponseType["DOCUMENT"] = "document";
22 ResponseType["JSON"] = "json";
23 ResponseType["RAW"] = "raw";
24 ResponseType["STREAM"] = "stream";
25 ResponseType["TEXT"] = "text";
26})(ResponseType || (ResponseType = {}));
27//# sourceMappingURL=ResponseType.js.map
\No newline at end of file