-
-
Notifications
You must be signed in to change notification settings - Fork 117
/
CurlFeature.ts
37 lines (32 loc) · 911 Bytes
/
CurlFeature.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
28
29
30
31
32
33
34
35
36
37
/**
* Copyright (c) Jonathan Cardoso Machado. All Rights Reserved.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export enum CurlFeature {
/**
* Data received is passed as a Buffer to the end event.
*/
NoDataParsing = 1 << 0,
/**
* Header received is not parsed, it's passed as a Buffer to the end event.
*/
NoHeaderParsing = 1 << 1,
/**
* Same than `NoDataParsing | NoHeaderParsing`
*/
Raw = NoDataParsing | NoHeaderParsing,
/**
* Data received is not stored inside this handle, implies NO_DATA_PARSING.
*/
NoDataStorage = 1 << 2,
/**
* Header received is not stored inside this handle, implies NO_HEADER_PARSING.
*/
NoHeaderStorage = 1 << 3,
/**
* Same than `NoDataStorage | NoHeaderStorage`, implies RAW.
*/
NoStorage = NoDataStorage | NoHeaderStorage,
}