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