whet 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -0
  3. package/bin/HxOverrides.d.ts +8 -0
  4. package/bin/HxOverrides.js +54 -0
  5. package/bin/Lambda.d.ts +86 -0
  6. package/bin/Lambda.js +141 -0
  7. package/bin/Map.d.ts +5 -0
  8. package/bin/Reflect.d.ts +19 -0
  9. package/bin/Reflect.js +41 -0
  10. package/bin/Std.d.ts +49 -0
  11. package/bin/Std.js +96 -0
  12. package/bin/StdTypes.d.ts +57 -0
  13. package/bin/StringTools.d.ts +23 -0
  14. package/bin/StringTools.js +36 -0
  15. package/bin/commander/AddHelpTextContext.d.ts +6 -0
  16. package/bin/commander/AddHelpTextPosition.d.ts +2 -0
  17. package/bin/commander/CommandOptions.d.ts +6 -0
  18. package/bin/commander/ErrorOptions.d.ts +11 -0
  19. package/bin/commander/ExecutableCommandOptions.d.ts +7 -0
  20. package/bin/commander/HelpContext.d.ts +4 -0
  21. package/bin/commander/HookEvent.d.ts +2 -0
  22. package/bin/commander/OptionValueSource.d.ts +2 -0
  23. package/bin/commander/OutputConfiguration.d.ts +8 -0
  24. package/bin/commander/ParseOptions.d.ts +4 -0
  25. package/bin/commander/ParseOptionsResult.d.ts +5 -0
  26. package/bin/genes/Register.d.ts +15 -0
  27. package/bin/genes/Register.js +107 -0
  28. package/bin/genes/util/EsMap.d.ts +12 -0
  29. package/bin/genes/util/EsMap.js +51 -0
  30. package/bin/haxe/Constraints.d.ts +8 -0
  31. package/bin/haxe/Constraints.js +5 -0
  32. package/bin/haxe/Exception.d.ts +66 -0
  33. package/bin/haxe/Exception.js +88 -0
  34. package/bin/haxe/NativeStackTrace.d.ts +7 -0
  35. package/bin/haxe/PosInfos.d.ts +19 -0
  36. package/bin/haxe/Rest.d.ts +2 -0
  37. package/bin/haxe/ValueException.d.ts +24 -0
  38. package/bin/haxe/ValueException.js +36 -0
  39. package/bin/haxe/crypto/Crc32.d.ts +12 -0
  40. package/bin/haxe/crypto/Crc32.js +40 -0
  41. package/bin/haxe/ds/List.d.ts +31 -0
  42. package/bin/haxe/ds/List.js +55 -0
  43. package/bin/haxe/ds/ObjectMap.d.ts +7 -0
  44. package/bin/haxe/ds/ObjectMap.js +25 -0
  45. package/bin/haxe/ds/StringMap.d.ts +6 -0
  46. package/bin/haxe/ds/StringMap.js +25 -0
  47. package/bin/haxe/exceptions/NotImplementedException.d.ts +10 -0
  48. package/bin/haxe/exceptions/NotImplementedException.js +27 -0
  49. package/bin/haxe/exceptions/PosException.d.ts +19 -0
  50. package/bin/haxe/exceptions/PosException.js +36 -0
  51. package/bin/haxe/extern/Rest.d.ts +11 -0
  52. package/bin/haxe/io/ArrayBufferView.d.ts +2 -0
  53. package/bin/haxe/io/Bytes.d.ts +19 -0
  54. package/bin/haxe/io/Bytes.js +78 -0
  55. package/bin/haxe/io/BytesBuffer.d.ts +19 -0
  56. package/bin/haxe/io/BytesBuffer.js +67 -0
  57. package/bin/haxe/io/BytesData.d.ts +2 -0
  58. package/bin/haxe/io/BytesOutput.d.ts +18 -0
  59. package/bin/haxe/io/BytesOutput.js +39 -0
  60. package/bin/haxe/io/Encoding.d.ts +20 -0
  61. package/bin/haxe/io/Encoding.js +20 -0
  62. package/bin/haxe/io/Error.d.ts +35 -0
  63. package/bin/haxe/io/Error.js +31 -0
  64. package/bin/haxe/io/Output.d.ts +63 -0
  65. package/bin/haxe/io/Output.js +126 -0
  66. package/bin/haxe/io/Path.d.ts +109 -0
  67. package/bin/haxe/io/Path.js +217 -0
  68. package/bin/haxe/io/UInt8Array.d.ts +2 -0
  69. package/bin/haxe/iterators/ArrayIterator.d.ts +19 -0
  70. package/bin/haxe/iterators/ArrayIterator.js +35 -0
  71. package/bin/haxe/macro/Expr.d.ts +331 -0
  72. package/bin/haxe/macro/Type.d.ts +609 -0
  73. package/bin/haxe/zip/Compress.d.ts +5 -0
  74. package/bin/haxe/zip/Compress.js +21 -0
  75. package/bin/haxe/zip/Entry.d.ts +27 -0
  76. package/bin/haxe/zip/Entry.js +15 -0
  77. package/bin/haxe/zip/Tools.d.ts +5 -0
  78. package/bin/haxe/zip/Tools.js +24 -0
  79. package/bin/haxe/zip/Writer.d.ts +22 -0
  80. package/bin/haxe/zip/Writer.js +149 -0
  81. package/bin/js/Boot.d.ts +18 -0
  82. package/bin/js/Boot.js +225 -0
  83. package/bin/js/Node.d.ts +6 -0
  84. package/bin/js/lib/ArrayBuffer.d.ts +4 -0
  85. package/bin/js/lib/ArrayBuffer.js +24 -0
  86. package/bin/js/lib/Iterator.d.ts +23 -0
  87. package/bin/js/lib/Map.d.ts +2 -0
  88. package/bin/js/lib/Object.d.ts +82 -0
  89. package/bin/js/lib/Promise.d.ts +10 -0
  90. package/bin/js/lib/intl/NumberFormat.d.ts +114 -0
  91. package/bin/js/node/Buffer.d.ts +3 -0
  92. package/bin/js/node/ChildProcess.d.ts +424 -0
  93. package/bin/js/node/Crypto.d.ts +21 -0
  94. package/bin/js/node/Dns.d.ts +57 -0
  95. package/bin/js/node/Fs.d.ts +308 -0
  96. package/bin/js/node/Http.d.ts +114 -0
  97. package/bin/js/node/Https.d.ts +330 -0
  98. package/bin/js/node/Iterator.d.ts +5 -0
  99. package/bin/js/node/Path.d.ts +44 -0
  100. package/bin/js/node/Process.d.ts +6 -0
  101. package/bin/js/node/Tls.d.ts +304 -0
  102. package/bin/js/node/Url.d.ts +126 -0
  103. package/bin/js/node/Util.d.ts +115 -0
  104. package/bin/js/node/Zlib.d.ts +29 -0
  105. package/bin/js/node/buffer/Buffer.d.ts +23 -0
  106. package/bin/js/node/buffer/Buffer.js +24 -0
  107. package/bin/js/node/child_process/ChildProcess.d.ts +11 -0
  108. package/bin/js/node/console/Console.d.ts +26 -0
  109. package/bin/js/node/http/Agent.d.ts +40 -0
  110. package/bin/js/node/http/ClientRequest.d.ts +10 -0
  111. package/bin/js/node/https/Agent.d.ts +50 -0
  112. package/bin/js/node/net/Server.d.ts +22 -0
  113. package/bin/js/node/net/Socket.d.ts +101 -0
  114. package/bin/js/node/stream/Duplex.d.ts +86 -0
  115. package/bin/js/node/stream/Readable.d.ts +41 -0
  116. package/bin/js/node/stream/Transform.d.ts +92 -0
  117. package/bin/js/node/stream/Writable.d.ts +57 -0
  118. package/bin/js/node/tls/SecureContext.d.ts +74 -0
  119. package/bin/js/node/tls/TLSSocket.d.ts +47 -0
  120. package/bin/ts/Undefined.d.ts +5 -0
  121. package/bin/whet/Log.d.ts +16 -0
  122. package/bin/whet/Log.js +106 -0
  123. package/bin/whet/Project.d.ts +33 -0
  124. package/bin/whet/Project.js +71 -0
  125. package/bin/whet/Source.d.ts +51 -0
  126. package/bin/whet/Source.js +136 -0
  127. package/bin/whet/SourceHash.d.ts +15 -0
  128. package/bin/whet/SourceHash.js +68 -0
  129. package/bin/whet/SourceId.d.ts +10 -0
  130. package/bin/whet/SourceId.js +74 -0
  131. package/bin/whet/Stone.d.ts +88 -0
  132. package/bin/whet/Stone.js +157 -0
  133. package/bin/whet/Utils.d.ts +16 -0
  134. package/bin/whet/Utils.js +72 -0
  135. package/bin/whet/Whet.d.ts +4 -0
  136. package/bin/whet/Whet.js +117 -0
  137. package/bin/whet/cache/BaseCache.d.ts +27 -0
  138. package/bin/whet/cache/BaseCache.js +210 -0
  139. package/bin/whet/cache/Cache.d.ts +72 -0
  140. package/bin/whet/cache/Cache.js +57 -0
  141. package/bin/whet/cache/CacheManager.d.ts +23 -0
  142. package/bin/whet/cache/CacheManager.js +103 -0
  143. package/bin/whet/cache/FileCache.d.ts +35 -0
  144. package/bin/whet/cache/FileCache.js +295 -0
  145. package/bin/whet/cache/MemoryCache.d.ts +12 -0
  146. package/bin/whet/cache/MemoryCache.js +58 -0
  147. package/bin/whet/magic/MaybeArray.d.ts +4 -0
  148. package/bin/whet/magic/MaybeArray.js +25 -0
  149. package/bin/whet/magic/RoutePathType.d.ts +9 -0
  150. package/bin/whet/magic/RoutePathType.js +48 -0
  151. package/bin/whet/magic/RouteType.d.ts +12 -0
  152. package/bin/whet/magic/RouteType.js +70 -0
  153. package/bin/whet/magic/StoneId.d.ts +5 -0
  154. package/bin/whet/magic/StoneId.js +32 -0
  155. package/bin/whet/route/Route.d.ts +15 -0
  156. package/bin/whet/route/Route.js +81 -0
  157. package/bin/whet/route/RouteResult.d.ts +22 -0
  158. package/bin/whet/route/RouteResult.js +25 -0
  159. package/bin/whet/route/Router.d.ts +33 -0
  160. package/bin/whet/route/Router.js +224 -0
  161. package/bin/whet/stones/Files.d.ts +28 -0
  162. package/bin/whet/stones/Files.js +86 -0
  163. package/bin/whet/stones/JsonStone.d.ts +33 -0
  164. package/bin/whet/stones/JsonStone.js +117 -0
  165. package/bin/whet/stones/RemoteFile.d.ts +28 -0
  166. package/bin/whet/stones/RemoteFile.js +71 -0
  167. package/bin/whet/stones/Server.d.ts +42 -0
  168. package/bin/whet/stones/Server.js +113 -0
  169. package/bin/whet/stones/Zip.d.ts +30 -0
  170. package/bin/whet/stones/Zip.js +111 -0
  171. package/bin/whet/stones/haxe/HaxeBuild.d.ts +34 -0
  172. package/bin/whet/stones/haxe/HaxeBuild.js +89 -0
  173. package/bin/whet/stones/haxe/Hxml.d.ts +102 -0
  174. package/bin/whet/stones/haxe/Hxml.js +348 -0
  175. package/bin/whet.d.ts +20 -0
  176. package/bin/whet.js +18 -0
  177. package/package.json +32 -0
@@ -0,0 +1,308 @@
1
+ import {Buffer} from "buffer"
2
+
3
+ /**
4
+ Most FS functions now support passing `String` and `Buffer`.
5
+ This type is used for path arguments and allows passing either of those.
6
+ */
7
+ export type FsPath = string | Buffer
8
+
9
+ /**
10
+ Possible options for `Fs.watchFile`.
11
+ */
12
+ export type FsWatchFileOptions = {
13
+ /**
14
+ indicates how often the target should be polled, in milliseconds
15
+ default: 5007
16
+ */
17
+ interval?: null | number,
18
+ /**
19
+ indicates whether the process should continue to run as long as files are being watched
20
+ default: true
21
+ */
22
+ persistent?: null | boolean
23
+ }
24
+
25
+ /**
26
+ The `mode` argument used by `Fs.open` and related functions
27
+ can be either an integer or a string with octal number.
28
+ */
29
+ export type FsMode = number | string
30
+
31
+ /**
32
+ Possible options for `Fs.writeFile` and `Fs.appendFile`.
33
+ */
34
+ export type FsWriteFileOptions = {
35
+ /**
36
+ Encoding for writing strings.
37
+ Defaults to 'utf8'.
38
+ Ignored if data is a buffer
39
+ */
40
+ encoding?: null | string,
41
+ /**
42
+ default: 'w' for `Fs.writeFile`, 'a' for `Fs.appendFile`
43
+ */
44
+ flag?: null | string,
45
+ /**
46
+ default = 438 (aka 0666 in Octal)
47
+ */
48
+ mode?: any
49
+ }
50
+
51
+ /**
52
+ Defaults:
53
+ { flags: 'r',
54
+ encoding: null,
55
+ fd: null,
56
+ mode: 0666,
57
+ autoClose: true
58
+ }
59
+ */
60
+ export type FsCreateReadStreamOptions = {
61
+ /**
62
+ If autoClose is false, then the file descriptor won't be closed, even if there's an error.
63
+ It is your responsiblity to close it and make sure there's no file descriptor leak.
64
+
65
+ If autoClose is set to true (default behavior), on error or end the file
66
+ descriptor will be closed automatically.
67
+ */
68
+ autoClose?: null | boolean,
69
+ /**
70
+ can be 'utf8', 'ascii', or 'base64'.
71
+ default: null
72
+ */
73
+ encoding?: null | string,
74
+ /**
75
+ End of the range of bytes to read
76
+ */
77
+ end?: null | number,
78
+ /**
79
+ default: null
80
+ */
81
+ fd?: null | number,
82
+ /**
83
+ default: 'r'
84
+ */
85
+ flags?: null | string,
86
+ /**
87
+ default: 0666
88
+ */
89
+ mode?: any,
90
+ /**
91
+ Start of the range of bytes to read
92
+ */
93
+ start?: null | number
94
+ }
95
+
96
+ /**
97
+ Options for `Fs.createWriteStream`.
98
+ */
99
+ export type FsCreateWriteStreamOptions = {
100
+ /**
101
+ default: null
102
+ */
103
+ encoding?: null | string,
104
+ /**
105
+ default: 'w'
106
+ */
107
+ flags?: null | string,
108
+ /**
109
+ default: 0666
110
+ */
111
+ mode?: any,
112
+ /**
113
+ position to write data the beginning of the file.
114
+ */
115
+ start?: null | number
116
+ }
117
+
118
+ /**
119
+ Constants for use in `Fs` module.
120
+
121
+ Note: Not every constant will be available on every operating system.
122
+ */
123
+ export type FsConstants = {
124
+ /**
125
+ Flag indicating that the file is visible to the calling process.
126
+ Meant for use with `Fs.access`.
127
+ */
128
+ F_OK: number,
129
+ /**
130
+ Flag indicating that data will be appended to the end of the file.
131
+ */
132
+ O_APPEND: number,
133
+ /**
134
+ Flag indicating to create the file if it does not already exist.
135
+ */
136
+ O_CREAT: number,
137
+ /**
138
+ When set, an attempt will be made to minimize caching effects of file I/O.
139
+ */
140
+ O_DIRECT: number,
141
+ /**
142
+ Flag indicating that the open should fail if the path is not a directory.
143
+ */
144
+ O_DIRECTORY: number,
145
+ /**
146
+ Flag indicating that opening a file should fail if the O_CREAT flag is set and the file already exists.
147
+ */
148
+ O_EXCL: number,
149
+ /**
150
+ Flag indicating reading accesses to the file system will no longer result in an update to the atime information associated with the file. This flag is available on Linux operating systems only.
151
+ */
152
+ O_NOATIME: number,
153
+ /**
154
+ Flag indicating that if path identifies a terminal device, opening the path shall not cause that terminal to become the controlling terminal for the process (if the process does not already have one).
155
+ */
156
+ O_NOCTTY: number,
157
+ /**
158
+ Flag indicating that the open should fail if the path is a symbolic link.
159
+ */
160
+ O_NOFOLLOW: number,
161
+ /**
162
+ Flag indicating to open the file in nonblocking mode when possible.
163
+ */
164
+ O_NONBLOCK: number,
165
+ /**
166
+ Flag indicating to open a file for read-only access.
167
+ */
168
+ O_RDONLY: number,
169
+ /**
170
+ Flag indicating to open a file for read-write access.
171
+ */
172
+ O_RDWR: number,
173
+ /**
174
+ Flag indicating to open the symbolic link itself rather than the resource it is pointing to.
175
+ */
176
+ O_SYMLINK: number,
177
+ /**
178
+ Flag indicating that the file is opened for synchronous I/O.
179
+ */
180
+ O_SYNC: number,
181
+ /**
182
+ Flag indicating that if the file exists and is a regular file, and the file is opened successfully for write access, its length shall be truncated to zero.
183
+ */
184
+ O_TRUNC: number,
185
+ /**
186
+ Flag indicating to open a file for write-only access.
187
+ */
188
+ O_WRONLY: number,
189
+ /**
190
+ Flag indicating that the file can be read by the calling process.
191
+ Meant for use with `Fs.access`.
192
+ */
193
+ R_OK: number,
194
+ /**
195
+ File type constant for a block-oriented device file.
196
+ */
197
+ S_IFBLK: number,
198
+ /**
199
+ File type constant for a character-oriented device file.
200
+ */
201
+ S_IFCHR: number,
202
+ /**
203
+ File type constant for a directory.
204
+ */
205
+ S_IFDIR: number,
206
+ /**
207
+ File type constant for a FIFO/pipe.
208
+ */
209
+ S_IFIFO: number,
210
+ /**
211
+ File type constant for a symbolic link.
212
+ */
213
+ S_IFLNK: number,
214
+ /**
215
+ Bit mask used to extract the file type code.
216
+ */
217
+ S_IFMT: number,
218
+ /**
219
+ File type constant for a regular file.
220
+ */
221
+ S_IFREG: number,
222
+ /**
223
+ File type constant for a socket.
224
+ */
225
+ S_IFSOCK: number,
226
+ /**
227
+ File mode indicating readable by group.
228
+ */
229
+ S_IRGRP: number,
230
+ /**
231
+ File mode indicating readable by others.
232
+ */
233
+ S_IROTH: number,
234
+ /**
235
+ File mode indicating readable by owner.
236
+ */
237
+ S_IRUSR: number,
238
+ /**
239
+ File mode indicating readable, writable and executable by group.
240
+ */
241
+ S_IRWXG: number,
242
+ /**
243
+ File mode indicating readable, writable and executable by others.
244
+ */
245
+ S_IRWXO: number,
246
+ /**
247
+ File mode indicating readable, writable and executable by owner.
248
+ */
249
+ S_IRWXU: number,
250
+ /**
251
+ File mode indicating writable by group.
252
+ */
253
+ S_IWGRP: number,
254
+ /**
255
+ File mode indicating writable by others.
256
+ */
257
+ S_IWOTH: number,
258
+ /**
259
+ File mode indicating writable by owner.
260
+ */
261
+ S_IWUSR: number,
262
+ /**
263
+ File mode indicating executable by group.
264
+ */
265
+ S_IXGRP: number,
266
+ /**
267
+ File mode indicating executable by others.
268
+ */
269
+ S_IXOTH: number,
270
+ /**
271
+ File mode indicating executable by owner.
272
+ */
273
+ S_IXUSR: number,
274
+ /**
275
+ Flag indicating that the file can be written by the calling process.
276
+ Meant for use with `Fs.access`.
277
+ */
278
+ W_OK: number,
279
+ /**
280
+ Flag indicating that the file can be executed by the calling process.
281
+ Meant for use with `Fs.access`.
282
+ */
283
+ X_OK: number
284
+ }
285
+
286
+ /**
287
+ Options for `Fs.rmdir` and `Fs.rmdirSync`.
288
+ */
289
+ export type FsRmdirOptions = {
290
+ /**
291
+ If an `EBUSY`, `EMFILE`, `ENFILE`, `ENOTEMPTY`, or `EPERM` error is encountered,
292
+ Node.js will retry the operation with a linear backoff wait of `retryDelay` ms longer on each try.
293
+ This option represents the number of retries.
294
+ This option is ignored if the `recursive` option is not `true`.
295
+ */
296
+ maxRetries?: null | number,
297
+ /**
298
+ If `true`, perform a recursive directory removal.
299
+ In recursive mode, errors are not reported if `path` does not exist,
300
+ and operations are retried on failure.
301
+ */
302
+ recursive?: null | boolean,
303
+ /**
304
+ The amount of time in milliseconds to wait between retries.
305
+ This option is ignored if the `recursive` option is not `true`.
306
+ */
307
+ retryDelay?: null | number
308
+ }
@@ -0,0 +1,114 @@
1
+ import {SocketConnectOptionsTcp} from "./net/Socket"
2
+ import {Agent} from "http"
3
+
4
+ export type HttpCreateServerOptions = {
5
+ /**
6
+ Specifies the `IncomingMessage` class to be used. Useful for extending the original `IncomingMessage`.
7
+
8
+ Default: `js.node.http.IncomingMessage`.
9
+ */
10
+ IncomingMessage?: null | any,
11
+ /**
12
+ Specifies the `ServerResponse` class to be used. Useful for extending the original `ServerResponse`.
13
+
14
+ Default: `ServerResponse`.
15
+ */
16
+ ServerResponse?: null | any
17
+ }
18
+
19
+ /**
20
+ Type of the options object passed to `Http.request`.
21
+ */
22
+ export type HttpRequestOptions = {
23
+ /**
24
+ Controls Agent behavior.
25
+
26
+ Possible values:
27
+
28
+ - `undefined` (default): use http.globalAgent for this host and port.
29
+ - `Agent` object: explicitly use the passed in `Agent`.
30
+ - `false` : causes a new `Agent` with default values to be used.
31
+ */
32
+ agent?: null | Agent | boolean,
33
+ /**
34
+ Basic authentication i.e. `'user:password'` to compute an Authorization header.
35
+ */
36
+ auth?: null | string,
37
+ /**
38
+ A function that produces a socket/stream to use for the request when the `agent` option is not used.
39
+ This can be used to avoid creating a custom `Agent` class just to override the default `createConnection` function.
40
+ See [agent.createConnection()](https://nodejs.org/api/http.html#http_agent_createconnection_options_callback) for more details.
41
+ Any `Duplex` stream is a valid return value.
42
+ */
43
+ createConnection?: null | ((options: SocketConnectOptionsTcp, callabck?: ((err: Error, stream: IDuplex) => void)) => IDuplex),
44
+ /**
45
+ Default port for the protocol.
46
+
47
+ Default: `agent.defaultPort` if an Agent is used, else `undefined`.
48
+ */
49
+ defaultPort?: null | number,
50
+ /**
51
+ IP address family to use when resolving `host` or `hostname`.
52
+ Valid values are `4` or `6`. When unspecified, both IP v4 and v6 will be used.
53
+ */
54
+ family?: null | number,
55
+ /**
56
+ An object containing request headers.
57
+ */
58
+ headers?: null | {[key: string]: string | string[]},
59
+ /**
60
+ A domain name or IP address of the server to issue the request to.
61
+
62
+ Default: `'localhost'`.
63
+ */
64
+ host?: null | string,
65
+ /**
66
+ Alias for `host`.
67
+ To support `url.parse()`, hostname will be used if both `host` and `hostname` are specified.
68
+ */
69
+ hostname?: null | string,
70
+ /**
71
+ Local interface to bind for network connections.
72
+ */
73
+ localAddress?: null | string,
74
+ /**
75
+ A string specifying the HTTP request method.
76
+
77
+ Default: `'GET'`.
78
+ */
79
+ method?: null | string,
80
+ /**
81
+ Request path. Should include query string if any. E.G. `'/index.html?page=12'`.
82
+ An exception is thrown when the request path contains illegal characters.
83
+ Currently, only spaces are rejected but that may change in the future.
84
+
85
+ Default: `'/'`.
86
+ */
87
+ path?: null | string,
88
+ /**
89
+ Port of remote server.
90
+
91
+ Default: `defaultPort` if set, else `80`.
92
+ */
93
+ port?: null | number,
94
+ /**
95
+ Protocol to use.
96
+
97
+ Default: `'http:'`.
98
+ */
99
+ protocol?: null | string,
100
+ /**
101
+ Specifies whether or not to automatically add the Host header.
102
+ Defaults to `true`.
103
+ */
104
+ setHost?: null | boolean,
105
+ /**
106
+ Unix Domain Socket (cannot be used if one of host or port is specified, those specify a TCP Socket).
107
+ */
108
+ socketPath?: null | string,
109
+ /**
110
+ A number specifying the socket timeout in milliseconds.
111
+ This will set the timeout before the socket is connected.
112
+ */
113
+ timeout?: null | number
114
+ }