isomorfeus-puppetmaster 0.5.6 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (979) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +167 -201
  3. data/lib/isomorfeus/puppeteer/dom_world.rb +13 -0
  4. data/lib/isomorfeus/puppeteer/element_handle.rb +238 -0
  5. data/lib/isomorfeus/puppeteer/execution_context.rb +90 -0
  6. data/lib/isomorfeus/puppeteer/frame.rb +33 -0
  7. data/lib/isomorfeus/puppeteer/js_handle.rb +13 -0
  8. data/lib/isomorfeus/puppeteer/page.rb +252 -0
  9. data/lib/isomorfeus/puppetmaster/dsl.rb +90 -17
  10. data/lib/isomorfeus/puppetmaster/server/checker.rb +38 -40
  11. data/lib/isomorfeus/puppetmaster/server.rb +169 -157
  12. data/lib/isomorfeus/puppetmaster/session.rb +145 -0
  13. data/lib/isomorfeus/puppetmaster/version.rb +1 -1
  14. data/lib/isomorfeus/puppetmaster.rb +4 -45
  15. data/lib/isomorfeus-puppetmaster.rb +10 -31
  16. metadata +53 -1009
  17. data/lib/isomorfeus/puppetmaster/console_message.rb +0 -19
  18. data/lib/isomorfeus/puppetmaster/cookie.rb +0 -46
  19. data/lib/isomorfeus/puppetmaster/document.rb +0 -271
  20. data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +0 -413
  21. data/lib/isomorfeus/puppetmaster/driver/puppeteer_document.rb +0 -953
  22. data/lib/isomorfeus/puppetmaster/driver/puppeteer_node.rb +0 -851
  23. data/lib/isomorfeus/puppetmaster/driver_registration.rb +0 -7
  24. data/lib/isomorfeus/puppetmaster/errors.rb +0 -90
  25. data/lib/isomorfeus/puppetmaster/iframe.rb +0 -17
  26. data/lib/isomorfeus/puppetmaster/node/checkbox.rb +0 -17
  27. data/lib/isomorfeus/puppetmaster/node/content_editable.rb +0 -18
  28. data/lib/isomorfeus/puppetmaster/node/filechooser.rb +0 -9
  29. data/lib/isomorfeus/puppetmaster/node/input.rb +0 -21
  30. data/lib/isomorfeus/puppetmaster/node/radiobutton.rb +0 -13
  31. data/lib/isomorfeus/puppetmaster/node/select.rb +0 -36
  32. data/lib/isomorfeus/puppetmaster/node/textarea.rb +0 -7
  33. data/lib/isomorfeus/puppetmaster/node.rb +0 -280
  34. data/lib/isomorfeus/puppetmaster/request.rb +0 -17
  35. data/lib/isomorfeus/puppetmaster/response.rb +0 -26
  36. data/lib/isomorfeus/puppetmaster/rspec/features.rb +0 -23
  37. data/lib/isomorfeus/puppetmaster/rspec/matcher_proxies.rb +0 -80
  38. data/lib/isomorfeus/puppetmaster/rspec/matchers/base.rb +0 -98
  39. data/lib/isomorfeus/puppetmaster/rspec/matchers/become_closed.rb +0 -33
  40. data/lib/isomorfeus/puppetmaster/rspec/matchers/compound.rb +0 -88
  41. data/lib/isomorfeus/puppetmaster/rspec/matchers/have_current_path.rb +0 -29
  42. data/lib/isomorfeus/puppetmaster/rspec/matchers/have_selector.rb +0 -69
  43. data/lib/isomorfeus/puppetmaster/rspec/matchers/have_text.rb +0 -33
  44. data/lib/isomorfeus/puppetmaster/rspec/matchers/have_title.rb +0 -29
  45. data/lib/isomorfeus/puppetmaster/rspec/matchers/match_selector.rb +0 -27
  46. data/lib/isomorfeus/puppetmaster/rspec/matchers/match_style.rb +0 -38
  47. data/lib/isomorfeus/puppetmaster/rspec/matchers.rb +0 -164
  48. data/lib/isomorfeus/puppetmaster/self_forwardable.rb +0 -39
  49. data/lib/isomorfeus/puppetmaster/server_registration.rb +0 -13
  50. data/node_modules/.bin/extract-zip +0 -12
  51. data/node_modules/.bin/extract-zip.cmd +0 -17
  52. data/node_modules/.bin/extract-zip.ps1 +0 -28
  53. data/node_modules/.bin/rimraf +0 -12
  54. data/node_modules/.bin/rimraf.cmd +0 -17
  55. data/node_modules/.bin/rimraf.ps1 +0 -28
  56. data/node_modules/.package-lock.json +0 -530
  57. data/node_modules/@types/node/LICENSE +0 -21
  58. data/node_modules/@types/node/README.md +0 -16
  59. data/node_modules/@types/node/assert/strict.d.ts +0 -8
  60. data/node_modules/@types/node/assert.d.ts +0 -912
  61. data/node_modules/@types/node/async_hooks.d.ts +0 -497
  62. data/node_modules/@types/node/buffer.d.ts +0 -2142
  63. data/node_modules/@types/node/child_process.d.ts +0 -1355
  64. data/node_modules/@types/node/cluster.d.ts +0 -414
  65. data/node_modules/@types/node/console.d.ts +0 -407
  66. data/node_modules/@types/node/constants.d.ts +0 -18
  67. data/node_modules/@types/node/crypto.d.ts +0 -3224
  68. data/node_modules/@types/node/dgram.d.ts +0 -545
  69. data/node_modules/@types/node/diagnostics_channel.d.ts +0 -128
  70. data/node_modules/@types/node/dns/promises.d.ts +0 -357
  71. data/node_modules/@types/node/dns.d.ts +0 -643
  72. data/node_modules/@types/node/domain.d.ts +0 -169
  73. data/node_modules/@types/node/events.d.ts +0 -623
  74. data/node_modules/@types/node/fs/promises.d.ts +0 -997
  75. data/node_modules/@types/node/fs.d.ts +0 -3723
  76. data/node_modules/@types/node/globals.d.ts +0 -285
  77. data/node_modules/@types/node/globals.global.d.ts +0 -1
  78. data/node_modules/@types/node/http.d.ts +0 -1358
  79. data/node_modules/@types/node/http2.d.ts +0 -2100
  80. data/node_modules/@types/node/https.d.ts +0 -391
  81. data/node_modules/@types/node/index.d.ts +0 -131
  82. data/node_modules/@types/node/inspector.d.ts +0 -2738
  83. data/node_modules/@types/node/module.d.ts +0 -114
  84. data/node_modules/@types/node/net.d.ts +0 -783
  85. data/node_modules/@types/node/os.d.ts +0 -455
  86. data/node_modules/@types/node/package.json +0 -230
  87. data/node_modules/@types/node/path.d.ts +0 -172
  88. data/node_modules/@types/node/perf_hooks.d.ts +0 -555
  89. data/node_modules/@types/node/process.d.ts +0 -1477
  90. data/node_modules/@types/node/punycode.d.ts +0 -117
  91. data/node_modules/@types/node/querystring.d.ts +0 -131
  92. data/node_modules/@types/node/readline.d.ts +0 -542
  93. data/node_modules/@types/node/repl.d.ts +0 -424
  94. data/node_modules/@types/node/stream/consumers.d.ts +0 -24
  95. data/node_modules/@types/node/stream/promises.d.ts +0 -42
  96. data/node_modules/@types/node/stream/web.d.ts +0 -6
  97. data/node_modules/@types/node/stream.d.ts +0 -1181
  98. data/node_modules/@types/node/string_decoder.d.ts +0 -67
  99. data/node_modules/@types/node/timers/promises.d.ts +0 -68
  100. data/node_modules/@types/node/timers.d.ts +0 -94
  101. data/node_modules/@types/node/tls.d.ts +0 -1019
  102. data/node_modules/@types/node/trace_events.d.ts +0 -161
  103. data/node_modules/@types/node/tty.d.ts +0 -206
  104. data/node_modules/@types/node/url.d.ts +0 -798
  105. data/node_modules/@types/node/util.d.ts +0 -1556
  106. data/node_modules/@types/node/v8.d.ts +0 -378
  107. data/node_modules/@types/node/vm.d.ts +0 -504
  108. data/node_modules/@types/node/wasi.d.ts +0 -153
  109. data/node_modules/@types/node/worker_threads.d.ts +0 -649
  110. data/node_modules/@types/node/zlib.d.ts +0 -517
  111. data/node_modules/@types/yauzl/LICENSE +0 -21
  112. data/node_modules/@types/yauzl/README.md +0 -16
  113. data/node_modules/@types/yauzl/index.d.ts +0 -98
  114. data/node_modules/@types/yauzl/package.json +0 -27
  115. data/node_modules/agent-base/README.md +0 -145
  116. data/node_modules/agent-base/dist/src/index.d.ts +0 -78
  117. data/node_modules/agent-base/dist/src/index.js +0 -203
  118. data/node_modules/agent-base/dist/src/index.js.map +0 -1
  119. data/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
  120. data/node_modules/agent-base/dist/src/promisify.js +0 -18
  121. data/node_modules/agent-base/dist/src/promisify.js.map +0 -1
  122. data/node_modules/agent-base/package.json +0 -64
  123. data/node_modules/agent-base/src/index.ts +0 -345
  124. data/node_modules/agent-base/src/promisify.ts +0 -33
  125. data/node_modules/balanced-match/.github/FUNDING.yml +0 -2
  126. data/node_modules/balanced-match/LICENSE.md +0 -21
  127. data/node_modules/balanced-match/README.md +0 -97
  128. data/node_modules/balanced-match/index.js +0 -62
  129. data/node_modules/balanced-match/package.json +0 -48
  130. data/node_modules/base64-js/LICENSE +0 -21
  131. data/node_modules/base64-js/README.md +0 -34
  132. data/node_modules/base64-js/base64js.min.js +0 -1
  133. data/node_modules/base64-js/index.d.ts +0 -3
  134. data/node_modules/base64-js/index.js +0 -150
  135. data/node_modules/base64-js/package.json +0 -47
  136. data/node_modules/bl/.travis.yml +0 -17
  137. data/node_modules/bl/BufferList.js +0 -396
  138. data/node_modules/bl/LICENSE.md +0 -13
  139. data/node_modules/bl/README.md +0 -247
  140. data/node_modules/bl/bl.js +0 -84
  141. data/node_modules/bl/package.json +0 -37
  142. data/node_modules/bl/test/convert.js +0 -21
  143. data/node_modules/bl/test/indexOf.js +0 -492
  144. data/node_modules/bl/test/isBufferList.js +0 -32
  145. data/node_modules/bl/test/test.js +0 -869
  146. data/node_modules/brace-expansion/LICENSE +0 -21
  147. data/node_modules/brace-expansion/README.md +0 -129
  148. data/node_modules/brace-expansion/index.js +0 -201
  149. data/node_modules/brace-expansion/package.json +0 -47
  150. data/node_modules/buffer/AUTHORS.md +0 -70
  151. data/node_modules/buffer/LICENSE +0 -21
  152. data/node_modules/buffer/README.md +0 -410
  153. data/node_modules/buffer/index.d.ts +0 -186
  154. data/node_modules/buffer/index.js +0 -1817
  155. data/node_modules/buffer/package.json +0 -96
  156. data/node_modules/buffer-crc32/LICENSE +0 -19
  157. data/node_modules/buffer-crc32/README.md +0 -47
  158. data/node_modules/buffer-crc32/index.js +0 -111
  159. data/node_modules/buffer-crc32/package.json +0 -39
  160. data/node_modules/chownr/LICENSE +0 -15
  161. data/node_modules/chownr/README.md +0 -3
  162. data/node_modules/chownr/chownr.js +0 -167
  163. data/node_modules/chownr/package.json +0 -29
  164. data/node_modules/concat-map/.travis.yml +0 -4
  165. data/node_modules/concat-map/LICENSE +0 -18
  166. data/node_modules/concat-map/README.markdown +0 -62
  167. data/node_modules/concat-map/example/map.js +0 -6
  168. data/node_modules/concat-map/index.js +0 -13
  169. data/node_modules/concat-map/package.json +0 -43
  170. data/node_modules/concat-map/test/map.js +0 -39
  171. data/node_modules/debug/LICENSE +0 -19
  172. data/node_modules/debug/README.md +0 -455
  173. data/node_modules/debug/package.json +0 -59
  174. data/node_modules/debug/src/browser.js +0 -269
  175. data/node_modules/debug/src/common.js +0 -274
  176. data/node_modules/debug/src/index.js +0 -10
  177. data/node_modules/debug/src/node.js +0 -263
  178. data/node_modules/devtools-protocol/LICENSE +0 -27
  179. data/node_modules/devtools-protocol/README.md +0 -12
  180. data/node_modules/devtools-protocol/json/browser_protocol.json +0 -20986
  181. data/node_modules/devtools-protocol/json/js_protocol.json +0 -3532
  182. data/node_modules/devtools-protocol/package.json +0 -17
  183. data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +0 -9849
  184. data/node_modules/devtools-protocol/pdl/js_protocol.pdl +0 -1653
  185. data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +0 -4333
  186. data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +0 -3695
  187. data/node_modules/devtools-protocol/types/protocol.d.ts +0 -15714
  188. data/node_modules/end-of-stream/LICENSE +0 -21
  189. data/node_modules/end-of-stream/README.md +0 -54
  190. data/node_modules/end-of-stream/index.js +0 -94
  191. data/node_modules/end-of-stream/package.json +0 -37
  192. data/node_modules/extract-zip/LICENSE +0 -23
  193. data/node_modules/extract-zip/cli.js +0 -19
  194. data/node_modules/extract-zip/index.d.ts +0 -21
  195. data/node_modules/extract-zip/index.js +0 -173
  196. data/node_modules/extract-zip/package.json +0 -80
  197. data/node_modules/extract-zip/readme.md +0 -57
  198. data/node_modules/fd-slicer/.npmignore +0 -2
  199. data/node_modules/fd-slicer/.travis.yml +0 -7
  200. data/node_modules/fd-slicer/CHANGELOG.md +0 -49
  201. data/node_modules/fd-slicer/LICENSE +0 -21
  202. data/node_modules/fd-slicer/README.md +0 -199
  203. data/node_modules/fd-slicer/index.js +0 -296
  204. data/node_modules/fd-slicer/package.json +0 -36
  205. data/node_modules/fd-slicer/test/test.js +0 -350
  206. data/node_modules/find-up/index.d.ts +0 -137
  207. data/node_modules/find-up/index.js +0 -89
  208. data/node_modules/find-up/license +0 -9
  209. data/node_modules/find-up/package.json +0 -53
  210. data/node_modules/find-up/readme.md +0 -156
  211. data/node_modules/fs-constants/LICENSE +0 -21
  212. data/node_modules/fs-constants/README.md +0 -26
  213. data/node_modules/fs-constants/browser.js +0 -1
  214. data/node_modules/fs-constants/index.js +0 -1
  215. data/node_modules/fs-constants/package.json +0 -19
  216. data/node_modules/fs.realpath/LICENSE +0 -43
  217. data/node_modules/fs.realpath/README.md +0 -33
  218. data/node_modules/fs.realpath/index.js +0 -66
  219. data/node_modules/fs.realpath/old.js +0 -303
  220. data/node_modules/fs.realpath/package.json +0 -26
  221. data/node_modules/get-stream/buffer-stream.js +0 -52
  222. data/node_modules/get-stream/index.d.ts +0 -108
  223. data/node_modules/get-stream/index.js +0 -60
  224. data/node_modules/get-stream/license +0 -9
  225. data/node_modules/get-stream/package.json +0 -50
  226. data/node_modules/get-stream/readme.md +0 -124
  227. data/node_modules/glob/LICENSE +0 -21
  228. data/node_modules/glob/README.md +0 -375
  229. data/node_modules/glob/changelog.md +0 -67
  230. data/node_modules/glob/common.js +0 -234
  231. data/node_modules/glob/glob.js +0 -788
  232. data/node_modules/glob/package.json +0 -51
  233. data/node_modules/glob/sync.js +0 -484
  234. data/node_modules/https-proxy-agent/README.md +0 -137
  235. data/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
  236. data/node_modules/https-proxy-agent/dist/agent.js +0 -180
  237. data/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
  238. data/node_modules/https-proxy-agent/dist/index.d.ts +0 -23
  239. data/node_modules/https-proxy-agent/dist/index.js +0 -14
  240. data/node_modules/https-proxy-agent/dist/index.js.map +0 -1
  241. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +0 -7
  242. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +0 -66
  243. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +0 -1
  244. data/node_modules/https-proxy-agent/package.json +0 -56
  245. data/node_modules/ieee754/LICENSE +0 -11
  246. data/node_modules/ieee754/README.md +0 -51
  247. data/node_modules/ieee754/index.d.ts +0 -10
  248. data/node_modules/ieee754/index.js +0 -85
  249. data/node_modules/ieee754/package.json +0 -52
  250. data/node_modules/inflight/LICENSE +0 -15
  251. data/node_modules/inflight/README.md +0 -37
  252. data/node_modules/inflight/inflight.js +0 -54
  253. data/node_modules/inflight/package.json +0 -29
  254. data/node_modules/inherits/LICENSE +0 -16
  255. data/node_modules/inherits/README.md +0 -42
  256. data/node_modules/inherits/inherits.js +0 -9
  257. data/node_modules/inherits/inherits_browser.js +0 -27
  258. data/node_modules/inherits/package.json +0 -29
  259. data/node_modules/locate-path/index.d.ts +0 -83
  260. data/node_modules/locate-path/index.js +0 -65
  261. data/node_modules/locate-path/license +0 -9
  262. data/node_modules/locate-path/package.json +0 -45
  263. data/node_modules/locate-path/readme.md +0 -122
  264. data/node_modules/minimatch/LICENSE +0 -15
  265. data/node_modules/minimatch/README.md +0 -209
  266. data/node_modules/minimatch/minimatch.js +0 -923
  267. data/node_modules/minimatch/package.json +0 -30
  268. data/node_modules/mkdirp-classic/LICENSE +0 -21
  269. data/node_modules/mkdirp-classic/README.md +0 -18
  270. data/node_modules/mkdirp-classic/index.js +0 -98
  271. data/node_modules/mkdirp-classic/package.json +0 -18
  272. data/node_modules/ms/index.js +0 -162
  273. data/node_modules/ms/license.md +0 -21
  274. data/node_modules/ms/package.json +0 -37
  275. data/node_modules/ms/readme.md +0 -60
  276. data/node_modules/node-fetch/LICENSE.md +0 -22
  277. data/node_modules/node-fetch/README.md +0 -590
  278. data/node_modules/node-fetch/browser.js +0 -25
  279. data/node_modules/node-fetch/lib/index.es.js +0 -1662
  280. data/node_modules/node-fetch/lib/index.js +0 -1671
  281. data/node_modules/node-fetch/lib/index.mjs +0 -1660
  282. data/node_modules/node-fetch/package.json +0 -68
  283. data/node_modules/once/LICENSE +0 -15
  284. data/node_modules/once/README.md +0 -79
  285. data/node_modules/once/once.js +0 -42
  286. data/node_modules/once/package.json +0 -33
  287. data/node_modules/p-limit/index.d.ts +0 -38
  288. data/node_modules/p-limit/index.js +0 -57
  289. data/node_modules/p-limit/license +0 -9
  290. data/node_modules/p-limit/package.json +0 -52
  291. data/node_modules/p-limit/readme.md +0 -101
  292. data/node_modules/p-locate/index.d.ts +0 -64
  293. data/node_modules/p-locate/index.js +0 -52
  294. data/node_modules/p-locate/license +0 -9
  295. data/node_modules/p-locate/package.json +0 -53
  296. data/node_modules/p-locate/readme.md +0 -90
  297. data/node_modules/p-try/index.d.ts +0 -39
  298. data/node_modules/p-try/index.js +0 -9
  299. data/node_modules/p-try/license +0 -9
  300. data/node_modules/p-try/package.json +0 -42
  301. data/node_modules/p-try/readme.md +0 -58
  302. data/node_modules/path-exists/index.d.ts +0 -28
  303. data/node_modules/path-exists/index.js +0 -23
  304. data/node_modules/path-exists/license +0 -9
  305. data/node_modules/path-exists/package.json +0 -39
  306. data/node_modules/path-exists/readme.md +0 -52
  307. data/node_modules/path-is-absolute/index.js +0 -20
  308. data/node_modules/path-is-absolute/license +0 -21
  309. data/node_modules/path-is-absolute/package.json +0 -43
  310. data/node_modules/path-is-absolute/readme.md +0 -59
  311. data/node_modules/pend/LICENSE +0 -23
  312. data/node_modules/pend/README.md +0 -41
  313. data/node_modules/pend/index.js +0 -55
  314. data/node_modules/pend/package.json +0 -18
  315. data/node_modules/pend/test.js +0 -137
  316. data/node_modules/pkg-dir/index.d.ts +0 -44
  317. data/node_modules/pkg-dir/index.js +0 -17
  318. data/node_modules/pkg-dir/license +0 -9
  319. data/node_modules/pkg-dir/package.json +0 -56
  320. data/node_modules/pkg-dir/readme.md +0 -66
  321. data/node_modules/progress/CHANGELOG.md +0 -115
  322. data/node_modules/progress/LICENSE +0 -22
  323. data/node_modules/progress/Makefile +0 -8
  324. data/node_modules/progress/Readme.md +0 -146
  325. data/node_modules/progress/index.js +0 -1
  326. data/node_modules/progress/lib/node-progress.js +0 -236
  327. data/node_modules/progress/package.json +0 -26
  328. data/node_modules/proxy-from-env/.eslintrc +0 -29
  329. data/node_modules/proxy-from-env/.travis.yml +0 -10
  330. data/node_modules/proxy-from-env/LICENSE +0 -20
  331. data/node_modules/proxy-from-env/README.md +0 -131
  332. data/node_modules/proxy-from-env/index.js +0 -108
  333. data/node_modules/proxy-from-env/package.json +0 -34
  334. data/node_modules/proxy-from-env/test.js +0 -483
  335. data/node_modules/pump/.travis.yml +0 -5
  336. data/node_modules/pump/LICENSE +0 -21
  337. data/node_modules/pump/README.md +0 -65
  338. data/node_modules/pump/index.js +0 -82
  339. data/node_modules/pump/package.json +0 -24
  340. data/node_modules/pump/test-browser.js +0 -66
  341. data/node_modules/pump/test-node.js +0 -53
  342. data/node_modules/puppeteer-core/CHANGELOG.md +0 -319
  343. data/node_modules/puppeteer-core/LICENSE +0 -202
  344. data/node_modules/puppeteer-core/README.md +0 -481
  345. data/node_modules/puppeteer-core/cjs-entry-core.js +0 -29
  346. data/node_modules/puppeteer-core/cjs-entry.js +0 -29
  347. data/node_modules/puppeteer-core/install.js +0 -89
  348. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +0 -111
  349. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +0 -1
  350. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +0 -81
  351. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +0 -1
  352. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +0 -176
  353. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +0 -1
  354. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +0 -361
  355. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +0 -1
  356. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +0 -21
  357. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +0 -1
  358. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +0 -85
  359. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +0 -1
  360. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +0 -456
  361. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +0 -1
  362. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +0 -541
  363. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +0 -1
  364. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +0 -54
  365. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +0 -1
  366. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +0 -98
  367. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +0 -1
  368. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +0 -26
  369. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +0 -1
  370. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +0 -35
  371. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +0 -1
  372. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +0 -136
  373. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +0 -1
  374. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +0 -299
  375. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +0 -1
  376. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +0 -25
  377. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +0 -1
  378. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +0 -18
  379. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +0 -1
  380. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +0 -73
  381. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +0 -1
  382. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +0 -65
  383. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +0 -1
  384. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +0 -205
  385. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +0 -1
  386. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +0 -336
  387. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +0 -1
  388. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +0 -176
  389. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +0 -1
  390. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +0 -663
  391. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +0 -1
  392. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +0 -53
  393. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +0 -1
  394. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +0 -82
  395. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +0 -1
  396. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +0 -41
  397. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  398. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +0 -1071
  399. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +0 -1
  400. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +0 -75
  401. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +0 -1
  402. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +0 -98
  403. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +0 -1
  404. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +0 -25
  405. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +0 -1
  406. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +0 -38
  407. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +0 -1
  408. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +0 -51
  409. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +0 -1
  410. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +0 -57
  411. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +0 -1
  412. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +0 -61
  413. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +0 -1
  414. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +0 -18
  415. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +0 -1
  416. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +0 -93
  417. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +0 -1
  418. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +0 -117
  419. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +0 -1
  420. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +0 -82
  421. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +0 -1
  422. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +0 -87
  423. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +0 -1
  424. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +0 -194
  425. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +0 -1
  426. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +0 -322
  427. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +0 -1
  428. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +0 -59
  429. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +0 -1
  430. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +0 -72
  431. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +0 -1
  432. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +0 -745
  433. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +0 -1
  434. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +0 -1048
  435. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +0 -1
  436. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +0 -351
  437. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +0 -1
  438. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +0 -550
  439. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +0 -1
  440. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +0 -135
  441. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +0 -1
  442. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +0 -185
  443. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +0 -1
  444. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +0 -359
  445. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +0 -1
  446. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +0 -544
  447. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +0 -1
  448. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +0 -491
  449. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +0 -1
  450. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +0 -828
  451. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +0 -1
  452. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +0 -66
  453. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +0 -1
  454. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +0 -150
  455. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +0 -1
  456. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +0 -27
  457. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  458. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +0 -34
  459. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +0 -1
  460. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +0 -127
  461. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +0 -1
  462. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +0 -468
  463. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +0 -1
  464. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +0 -162
  465. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +0 -1
  466. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +0 -35
  467. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +0 -1
  468. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +0 -2056
  469. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +0 -1
  470. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +0 -2534
  471. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +0 -1
  472. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +0 -21
  473. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +0 -1
  474. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +0 -18
  475. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +0 -1
  476. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +0 -160
  477. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +0 -1
  478. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +0 -162
  479. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +0 -1
  480. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +0 -52
  481. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +0 -1
  482. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +0 -3
  483. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +0 -1
  484. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +0 -65
  485. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +0 -1
  486. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +0 -166
  487. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +0 -1
  488. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +0 -61
  489. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +0 -1
  490. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +0 -77
  491. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +0 -1
  492. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +0 -101
  493. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +0 -1
  494. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +0 -146
  495. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +0 -1
  496. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts +0 -21
  497. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.d.ts.map +0 -1
  498. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js +0 -30
  499. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TaskQueue.js.map +0 -1
  500. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +0 -28
  501. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +0 -1
  502. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +0 -48
  503. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +0 -1
  504. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +0 -47
  505. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +0 -1
  506. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +0 -110
  507. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +0 -1
  508. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +0 -40
  509. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +0 -1
  510. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +0 -407
  511. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +0 -1
  512. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +0 -99
  513. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +0 -1
  514. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +0 -113
  515. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +0 -1
  516. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +0 -23
  517. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +0 -1
  518. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +0 -34
  519. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +0 -1
  520. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +0 -17
  521. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +0 -1
  522. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +0 -44
  523. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +0 -1
  524. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +0 -85
  525. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +0 -1
  526. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +0 -328
  527. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +0 -1
  528. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +0 -17
  529. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +0 -1
  530. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +0 -20
  531. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +0 -1
  532. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts +0 -17
  533. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.d.ts.map +0 -1
  534. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js +0 -3
  535. data/node_modules/puppeteer-core/lib/cjs/puppeteer/global.js.map +0 -1
  536. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +0 -18
  537. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +0 -1
  538. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +0 -45
  539. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +0 -1
  540. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +0 -18
  541. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +0 -1
  542. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +0 -27
  543. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +0 -1
  544. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +0 -134
  545. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +0 -1
  546. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +0 -501
  547. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +0 -1
  548. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +0 -41
  549. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +0 -1
  550. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +0 -257
  551. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +0 -1
  552. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +0 -135
  553. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +0 -1
  554. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +0 -18
  555. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +0 -1
  556. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +0 -17
  557. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +0 -1
  558. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +0 -656
  559. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +0 -1
  560. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +0 -27
  561. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  562. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +0 -48
  563. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  564. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +0 -30
  565. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +0 -1
  566. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +0 -65
  567. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +0 -1
  568. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +0 -154
  569. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +0 -1
  570. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +0 -189
  571. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +0 -1
  572. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +0 -18
  573. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +0 -1
  574. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +0 -174
  575. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +0 -1
  576. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +0 -18
  577. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +0 -1
  578. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +0 -25
  579. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +0 -1
  580. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +0 -18
  581. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +0 -1
  582. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +0 -24
  583. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +0 -1
  584. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +0 -22
  585. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +0 -1
  586. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +0 -23
  587. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +0 -1
  588. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +0 -18
  589. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +0 -1
  590. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +0 -24
  591. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +0 -1
  592. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +0 -28
  593. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +0 -1
  594. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +0 -57
  595. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +0 -1
  596. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +0 -111
  597. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +0 -1
  598. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +0 -81
  599. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +0 -1
  600. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +0 -176
  601. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +0 -1
  602. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +0 -357
  603. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +0 -1
  604. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +0 -21
  605. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +0 -1
  606. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +0 -82
  607. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +0 -1
  608. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +0 -456
  609. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +0 -1
  610. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +0 -536
  611. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +0 -1
  612. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +0 -54
  613. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +0 -1
  614. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +0 -75
  615. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +0 -1
  616. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +0 -26
  617. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +0 -1
  618. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +0 -31
  619. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +0 -1
  620. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +0 -136
  621. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +0 -1
  622. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +0 -294
  623. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +0 -1
  624. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +0 -25
  625. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +0 -1
  626. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +0 -17
  627. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +0 -1
  628. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +0 -73
  629. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +0 -1
  630. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +0 -61
  631. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +0 -1
  632. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +0 -205
  633. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +0 -1
  634. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +0 -330
  635. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +0 -1
  636. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +0 -176
  637. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +0 -1
  638. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +0 -658
  639. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +0 -1
  640. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +0 -53
  641. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +0 -1
  642. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +0 -78
  643. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +0 -1
  644. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +0 -41
  645. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +0 -1
  646. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +0 -1068
  647. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +0 -1
  648. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +0 -75
  649. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +0 -1
  650. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +0 -94
  651. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +0 -1
  652. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +0 -25
  653. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +0 -1
  654. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +0 -34
  655. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +0 -1
  656. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +0 -51
  657. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +0 -1
  658. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +0 -51
  659. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +0 -1
  660. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +0 -61
  661. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +0 -1
  662. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +0 -17
  663. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +0 -1
  664. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +0 -93
  665. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +0 -1
  666. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +0 -110
  667. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +0 -1
  668. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +0 -82
  669. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +0 -1
  670. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +0 -84
  671. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +0 -1
  672. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +0 -194
  673. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +0 -1
  674. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +0 -318
  675. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +0 -1
  676. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +0 -59
  677. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +0 -1
  678. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +0 -68
  679. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +0 -1
  680. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +0 -745
  681. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +0 -1
  682. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +0 -1043
  683. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +0 -1
  684. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +0 -351
  685. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +0 -1
  686. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +0 -546
  687. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +0 -1
  688. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +0 -135
  689. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +0 -1
  690. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +0 -181
  691. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +0 -1
  692. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +0 -359
  693. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +0 -1
  694. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +0 -538
  695. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +0 -1
  696. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +0 -491
  697. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +0 -1
  698. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +0 -803
  699. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +0 -1
  700. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +0 -66
  701. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +0 -1
  702. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +0 -146
  703. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +0 -1
  704. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +0 -27
  705. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +0 -1
  706. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +0 -31
  707. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +0 -1
  708. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +0 -127
  709. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +0 -1
  710. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +0 -464
  711. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +0 -1
  712. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +0 -162
  713. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +0 -1
  714. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +0 -32
  715. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +0 -1
  716. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +0 -2056
  717. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +0 -1
  718. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +0 -2530
  719. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +0 -1
  720. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +0 -21
  721. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +0 -1
  722. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +0 -17
  723. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +0 -1
  724. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +0 -160
  725. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +0 -1
  726. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +0 -158
  727. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +0 -1
  728. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +0 -52
  729. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +0 -1
  730. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +0 -2
  731. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +0 -1
  732. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +0 -65
  733. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +0 -1
  734. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +0 -158
  735. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +0 -1
  736. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +0 -61
  737. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +0 -1
  738. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +0 -73
  739. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +0 -1
  740. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +0 -101
  741. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +0 -1
  742. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +0 -142
  743. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +0 -1
  744. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts +0 -21
  745. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.d.ts.map +0 -1
  746. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js +0 -26
  747. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TaskQueue.js.map +0 -1
  748. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +0 -28
  749. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +0 -1
  750. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +0 -44
  751. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +0 -1
  752. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +0 -47
  753. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +0 -1
  754. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +0 -106
  755. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +0 -1
  756. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +0 -40
  757. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +0 -1
  758. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +0 -404
  759. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +0 -1
  760. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +0 -99
  761. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +0 -1
  762. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +0 -109
  763. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +0 -1
  764. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +0 -23
  765. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +0 -1
  766. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +0 -29
  767. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +0 -1
  768. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +0 -17
  769. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +0 -1
  770. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +0 -21
  771. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +0 -1
  772. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +0 -85
  773. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +0 -1
  774. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +0 -306
  775. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +0 -1
  776. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +0 -17
  777. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +0 -1
  778. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +0 -17
  779. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +0 -1
  780. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts +0 -17
  781. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.d.ts.map +0 -1
  782. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js +0 -2
  783. data/node_modules/puppeteer-core/lib/esm/puppeteer/global.js.map +0 -1
  784. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +0 -18
  785. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +0 -1
  786. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +0 -38
  787. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +0 -1
  788. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +0 -18
  789. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +0 -1
  790. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +0 -23
  791. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +0 -1
  792. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +0 -134
  793. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +0 -1
  794. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +0 -475
  795. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +0 -1
  796. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +0 -41
  797. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +0 -1
  798. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +0 -231
  799. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +0 -1
  800. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +0 -135
  801. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +0 -1
  802. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +0 -17
  803. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +0 -1
  804. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +0 -17
  805. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +0 -1
  806. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +0 -634
  807. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +0 -1
  808. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +0 -27
  809. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +0 -1
  810. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +0 -41
  811. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +0 -1
  812. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +0 -30
  813. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +0 -1
  814. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +0 -61
  815. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +0 -1
  816. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +0 -154
  817. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +0 -1
  818. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +0 -182
  819. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +0 -1
  820. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +0 -18
  821. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +0 -1
  822. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +0 -166
  823. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +0 -1
  824. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +0 -18
  825. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +0 -1
  826. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +0 -23
  827. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +0 -1
  828. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +0 -18
  829. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +0 -1
  830. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +0 -22
  831. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +0 -1
  832. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +0 -22
  833. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +0 -1
  834. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +0 -20
  835. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +0 -1
  836. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +0 -18
  837. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +0 -1
  838. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +0 -22
  839. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +0 -1
  840. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +0 -28
  841. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +0 -1
  842. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +0 -54
  843. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +0 -1
  844. data/node_modules/puppeteer-core/lib/types.d.ts +0 -7141
  845. data/node_modules/puppeteer-core/package.json +0 -116
  846. data/node_modules/puppeteer-core/typescript-if-required.js +0 -61
  847. data/node_modules/readable-stream/CONTRIBUTING.md +0 -38
  848. data/node_modules/readable-stream/GOVERNANCE.md +0 -136
  849. data/node_modules/readable-stream/LICENSE +0 -47
  850. data/node_modules/readable-stream/README.md +0 -106
  851. data/node_modules/readable-stream/errors-browser.js +0 -127
  852. data/node_modules/readable-stream/errors.js +0 -116
  853. data/node_modules/readable-stream/experimentalWarning.js +0 -17
  854. data/node_modules/readable-stream/lib/_stream_duplex.js +0 -139
  855. data/node_modules/readable-stream/lib/_stream_passthrough.js +0 -39
  856. data/node_modules/readable-stream/lib/_stream_readable.js +0 -1124
  857. data/node_modules/readable-stream/lib/_stream_transform.js +0 -201
  858. data/node_modules/readable-stream/lib/_stream_writable.js +0 -697
  859. data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -207
  860. data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -210
  861. data/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -105
  862. data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -104
  863. data/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
  864. data/node_modules/readable-stream/lib/internal/streams/from.js +0 -64
  865. data/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -97
  866. data/node_modules/readable-stream/lib/internal/streams/state.js +0 -27
  867. data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
  868. data/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
  869. data/node_modules/readable-stream/package.json +0 -68
  870. data/node_modules/readable-stream/readable-browser.js +0 -9
  871. data/node_modules/readable-stream/readable.js +0 -16
  872. data/node_modules/rimraf/CHANGELOG.md +0 -65
  873. data/node_modules/rimraf/LICENSE +0 -15
  874. data/node_modules/rimraf/README.md +0 -101
  875. data/node_modules/rimraf/bin.js +0 -68
  876. data/node_modules/rimraf/package.json +0 -32
  877. data/node_modules/rimraf/rimraf.js +0 -360
  878. data/node_modules/safe-buffer/LICENSE +0 -21
  879. data/node_modules/safe-buffer/README.md +0 -584
  880. data/node_modules/safe-buffer/index.d.ts +0 -187
  881. data/node_modules/safe-buffer/index.js +0 -65
  882. data/node_modules/safe-buffer/package.json +0 -51
  883. data/node_modules/string_decoder/LICENSE +0 -48
  884. data/node_modules/string_decoder/README.md +0 -47
  885. data/node_modules/string_decoder/lib/string_decoder.js +0 -296
  886. data/node_modules/string_decoder/package.json +0 -34
  887. data/node_modules/tar-fs/.travis.yml +0 -6
  888. data/node_modules/tar-fs/LICENSE +0 -21
  889. data/node_modules/tar-fs/README.md +0 -165
  890. data/node_modules/tar-fs/index.js +0 -351
  891. data/node_modules/tar-fs/package.json +0 -41
  892. data/node_modules/tar-fs/test/fixtures/a/hello.txt +0 -1
  893. data/node_modules/tar-fs/test/fixtures/b/a/test.txt +0 -1
  894. data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  895. data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  896. data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  897. data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  898. data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  899. data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  900. data/node_modules/tar-fs/test/fixtures/e/file +0 -0
  901. data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  902. data/node_modules/tar-fs/test/index.js +0 -346
  903. data/node_modules/tar-stream/LICENSE +0 -21
  904. data/node_modules/tar-stream/README.md +0 -168
  905. data/node_modules/tar-stream/extract.js +0 -257
  906. data/node_modules/tar-stream/headers.js +0 -295
  907. data/node_modules/tar-stream/index.js +0 -2
  908. data/node_modules/tar-stream/pack.js +0 -255
  909. data/node_modules/tar-stream/package.json +0 -58
  910. data/node_modules/tar-stream/sandbox.js +0 -11
  911. data/node_modules/through/.travis.yml +0 -5
  912. data/node_modules/through/LICENSE.APACHE2 +0 -15
  913. data/node_modules/through/LICENSE.MIT +0 -24
  914. data/node_modules/through/index.js +0 -108
  915. data/node_modules/through/package.json +0 -36
  916. data/node_modules/through/readme.markdown +0 -64
  917. data/node_modules/through/test/async.js +0 -28
  918. data/node_modules/through/test/auto-destroy.js +0 -30
  919. data/node_modules/through/test/buffering.js +0 -71
  920. data/node_modules/through/test/end.js +0 -45
  921. data/node_modules/through/test/index.js +0 -133
  922. data/node_modules/tr46/.npmignore +0 -4
  923. data/node_modules/tr46/index.js +0 -193
  924. data/node_modules/tr46/lib/.gitkeep +0 -0
  925. data/node_modules/tr46/lib/mappingTable.json +0 -1
  926. data/node_modules/tr46/package.json +0 -31
  927. data/node_modules/unbzip2-stream/LICENSE +0 -24
  928. data/node_modules/unbzip2-stream/README.md +0 -59
  929. data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +0 -1
  930. data/node_modules/unbzip2-stream/index.js +0 -93
  931. data/node_modules/unbzip2-stream/lib/bit_iterator.js +0 -39
  932. data/node_modules/unbzip2-stream/lib/bzip2.js +0 -365
  933. data/node_modules/unbzip2-stream/package.json +0 -51
  934. data/node_modules/util-deprecate/History.md +0 -16
  935. data/node_modules/util-deprecate/LICENSE +0 -24
  936. data/node_modules/util-deprecate/README.md +0 -53
  937. data/node_modules/util-deprecate/browser.js +0 -67
  938. data/node_modules/util-deprecate/node.js +0 -6
  939. data/node_modules/util-deprecate/package.json +0 -27
  940. data/node_modules/webidl-conversions/LICENSE.md +0 -12
  941. data/node_modules/webidl-conversions/README.md +0 -53
  942. data/node_modules/webidl-conversions/lib/index.js +0 -189
  943. data/node_modules/webidl-conversions/package.json +0 -23
  944. data/node_modules/whatwg-url/LICENSE.txt +0 -21
  945. data/node_modules/whatwg-url/README.md +0 -67
  946. data/node_modules/whatwg-url/lib/URL-impl.js +0 -200
  947. data/node_modules/whatwg-url/lib/URL.js +0 -196
  948. data/node_modules/whatwg-url/lib/public-api.js +0 -11
  949. data/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
  950. data/node_modules/whatwg-url/lib/utils.js +0 -20
  951. data/node_modules/whatwg-url/package.json +0 -32
  952. data/node_modules/wrappy/LICENSE +0 -15
  953. data/node_modules/wrappy/README.md +0 -36
  954. data/node_modules/wrappy/package.json +0 -29
  955. data/node_modules/wrappy/wrappy.js +0 -33
  956. data/node_modules/ws/LICENSE +0 -19
  957. data/node_modules/ws/README.md +0 -493
  958. data/node_modules/ws/browser.js +0 -8
  959. data/node_modules/ws/index.js +0 -13
  960. data/node_modules/ws/lib/buffer-util.js +0 -126
  961. data/node_modules/ws/lib/constants.js +0 -12
  962. data/node_modules/ws/lib/event-target.js +0 -266
  963. data/node_modules/ws/lib/extension.js +0 -203
  964. data/node_modules/ws/lib/limiter.js +0 -55
  965. data/node_modules/ws/lib/permessage-deflate.js +0 -511
  966. data/node_modules/ws/lib/receiver.js +0 -612
  967. data/node_modules/ws/lib/sender.js +0 -422
  968. data/node_modules/ws/lib/stream.js +0 -180
  969. data/node_modules/ws/lib/subprotocol.js +0 -62
  970. data/node_modules/ws/lib/validation.js +0 -124
  971. data/node_modules/ws/lib/websocket-server.js +0 -485
  972. data/node_modules/ws/lib/websocket.js +0 -1149
  973. data/node_modules/ws/package.json +0 -61
  974. data/node_modules/ws/wrapper.mjs +0 -8
  975. data/node_modules/yauzl/LICENSE +0 -21
  976. data/node_modules/yauzl/README.md +0 -658
  977. data/node_modules/yauzl/index.js +0 -796
  978. data/node_modules/yauzl/package.json +0 -40
  979. data/package.json +0 -6
@@ -1,1358 +0,0 @@
1
- /**
2
- * To use the HTTP server and client one must `require('http')`.
3
- *
4
- * The HTTP interfaces in Node.js are designed to support many features
5
- * of the protocol which have been traditionally difficult to use.
6
- * In particular, large, possibly chunk-encoded, messages. The interface is
7
- * careful to never buffer entire requests or responses, so the
8
- * user is able to stream data.
9
- *
10
- * HTTP message headers are represented by an object like this:
11
- *
12
- * ```js
13
- * { 'content-length': '123',
14
- * 'content-type': 'text/plain',
15
- * 'connection': 'keep-alive',
16
- * 'host': 'mysite.com',
17
- * 'accept': '*' }
18
- * ```
19
- *
20
- * Keys are lowercased. Values are not modified.
21
- *
22
- * In order to support the full spectrum of possible HTTP applications, the Node.js
23
- * HTTP API is very low-level. It deals with stream handling and message
24
- * parsing only. It parses a message into headers and body but it does not
25
- * parse the actual headers or the body.
26
- *
27
- * See `message.headers` for details on how duplicate headers are handled.
28
- *
29
- * The raw headers as they were received are retained in the `rawHeaders`property, which is an array of `[key, value, key2, value2, ...]`. For
30
- * example, the previous message header object might have a `rawHeaders`list like the following:
31
- *
32
- * ```js
33
- * [ 'ConTent-Length', '123456',
34
- * 'content-LENGTH', '123',
35
- * 'content-type', 'text/plain',
36
- * 'CONNECTION', 'keep-alive',
37
- * 'Host', 'mysite.com',
38
- * 'accepT', '*' ]
39
- * ```
40
- * @see [source](https://github.com/nodejs/node/blob/v16.7.0/lib/http.js)
41
- */
42
- declare module 'http' {
43
- import * as stream from 'node:stream';
44
- import { URL } from 'node:url';
45
- import { Socket, Server as NetServer } from 'node:net';
46
- // incoming headers will never contain number
47
- interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
48
- accept?: string | undefined;
49
- 'accept-language'?: string | undefined;
50
- 'accept-patch'?: string | undefined;
51
- 'accept-ranges'?: string | undefined;
52
- 'access-control-allow-credentials'?: string | undefined;
53
- 'access-control-allow-headers'?: string | undefined;
54
- 'access-control-allow-methods'?: string | undefined;
55
- 'access-control-allow-origin'?: string | undefined;
56
- 'access-control-expose-headers'?: string | undefined;
57
- 'access-control-max-age'?: string | undefined;
58
- 'access-control-request-headers'?: string | undefined;
59
- 'access-control-request-method'?: string | undefined;
60
- age?: string | undefined;
61
- allow?: string | undefined;
62
- 'alt-svc'?: string | undefined;
63
- authorization?: string | undefined;
64
- 'cache-control'?: string | undefined;
65
- connection?: string | undefined;
66
- 'content-disposition'?: string | undefined;
67
- 'content-encoding'?: string | undefined;
68
- 'content-language'?: string | undefined;
69
- 'content-length'?: string | undefined;
70
- 'content-location'?: string | undefined;
71
- 'content-range'?: string | undefined;
72
- 'content-type'?: string | undefined;
73
- cookie?: string | undefined;
74
- date?: string | undefined;
75
- etag?: string | undefined;
76
- expect?: string | undefined;
77
- expires?: string | undefined;
78
- forwarded?: string | undefined;
79
- from?: string | undefined;
80
- host?: string | undefined;
81
- 'if-match'?: string | undefined;
82
- 'if-modified-since'?: string | undefined;
83
- 'if-none-match'?: string | undefined;
84
- 'if-unmodified-since'?: string | undefined;
85
- 'last-modified'?: string | undefined;
86
- location?: string | undefined;
87
- origin?: string | undefined;
88
- pragma?: string | undefined;
89
- 'proxy-authenticate'?: string | undefined;
90
- 'proxy-authorization'?: string | undefined;
91
- 'public-key-pins'?: string | undefined;
92
- range?: string | undefined;
93
- referer?: string | undefined;
94
- 'retry-after'?: string | undefined;
95
- 'sec-websocket-accept'?: string | undefined;
96
- 'sec-websocket-extensions'?: string | undefined;
97
- 'sec-websocket-key'?: string | undefined;
98
- 'sec-websocket-protocol'?: string | undefined;
99
- 'sec-websocket-version'?: string | undefined;
100
- 'set-cookie'?: string[] | undefined;
101
- 'strict-transport-security'?: string | undefined;
102
- tk?: string | undefined;
103
- trailer?: string | undefined;
104
- 'transfer-encoding'?: string | undefined;
105
- upgrade?: string | undefined;
106
- 'user-agent'?: string | undefined;
107
- vary?: string | undefined;
108
- via?: string | undefined;
109
- warning?: string | undefined;
110
- 'www-authenticate'?: string | undefined;
111
- }
112
- // outgoing headers allows numbers (as they are converted internally to strings)
113
- type OutgoingHttpHeader = number | string | string[];
114
- interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {}
115
- interface ClientRequestArgs {
116
- abort?: AbortSignal | undefined;
117
- protocol?: string | null | undefined;
118
- host?: string | null | undefined;
119
- hostname?: string | null | undefined;
120
- family?: number | undefined;
121
- port?: number | string | null | undefined;
122
- defaultPort?: number | string | undefined;
123
- localAddress?: string | undefined;
124
- socketPath?: string | undefined;
125
- /**
126
- * @default 8192
127
- */
128
- maxHeaderSize?: number | undefined;
129
- method?: string | undefined;
130
- path?: string | null | undefined;
131
- headers?: OutgoingHttpHeaders | undefined;
132
- auth?: string | null | undefined;
133
- agent?: Agent | boolean | undefined;
134
- _defaultAgent?: Agent | undefined;
135
- timeout?: number | undefined;
136
- setHost?: boolean | undefined;
137
- // https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
138
- createConnection?: ((options: ClientRequestArgs, oncreate: (err: Error, socket: Socket) => void) => Socket) | undefined;
139
- }
140
- interface ServerOptions {
141
- IncomingMessage?: typeof IncomingMessage | undefined;
142
- ServerResponse?: typeof ServerResponse | undefined;
143
- /**
144
- * Optionally overrides the value of
145
- * `--max-http-header-size` for requests received by this server, i.e.
146
- * the maximum length of request headers in bytes.
147
- * @default 8192
148
- */
149
- maxHeaderSize?: number | undefined;
150
- /**
151
- * Use an insecure HTTP parser that accepts invalid HTTP headers when true.
152
- * Using the insecure parser should be avoided.
153
- * See --insecure-http-parser for more information.
154
- * @default false
155
- */
156
- insecureHTTPParser?: boolean | undefined;
157
- }
158
- type RequestListener = (req: IncomingMessage, res: ServerResponse) => void;
159
- /**
160
- * @since v0.1.17
161
- */
162
- class Server extends NetServer {
163
- constructor(requestListener?: RequestListener);
164
- constructor(options: ServerOptions, requestListener?: RequestListener);
165
- /**
166
- * Sets the timeout value for sockets, and emits a `'timeout'` event on
167
- * the Server object, passing the socket as an argument, if a timeout
168
- * occurs.
169
- *
170
- * If there is a `'timeout'` event listener on the Server object, then it
171
- * will be called with the timed-out socket as an argument.
172
- *
173
- * By default, the Server does not timeout sockets. However, if a callback
174
- * is assigned to the Server's `'timeout'` event, timeouts must be handled
175
- * explicitly.
176
- * @since v0.9.12
177
- * @param [msecs=0 (no timeout)]
178
- */
179
- setTimeout(msecs?: number, callback?: () => void): this;
180
- setTimeout(callback: () => void): this;
181
- /**
182
- * Limits maximum incoming headers count. If set to 0, no limit will be applied.
183
- * @since v0.7.0
184
- */
185
- maxHeadersCount: number | null;
186
- /**
187
- * The number of milliseconds of inactivity before a socket is presumed
188
- * to have timed out.
189
- *
190
- * A value of `0` will disable the timeout behavior on incoming connections.
191
- *
192
- * The socket timeout logic is set up on connection, so changing this
193
- * value only affects new connections to the server, not any existing connections.
194
- * @since v0.9.12
195
- */
196
- timeout: number;
197
- /**
198
- * Limit the amount of time the parser will wait to receive the complete HTTP
199
- * headers.
200
- *
201
- * In case of inactivity, the rules defined in `server.timeout` apply. However,
202
- * that inactivity based timeout would still allow the connection to be kept open
203
- * if the headers are being sent very slowly (by default, up to a byte per 2
204
- * minutes). In order to prevent this, whenever header data arrives an additional
205
- * check is made that more than `server.headersTimeout` milliseconds has not
206
- * passed since the connection was established. If the check fails, a `'timeout'`event is emitted on the server object, and (by default) the socket is destroyed.
207
- * See `server.timeout` for more information on how timeout behavior can be
208
- * customized.
209
- * @since v11.3.0, v10.14.0
210
- */
211
- headersTimeout: number;
212
- /**
213
- * The number of milliseconds of inactivity a server needs to wait for additional
214
- * incoming data, after it has finished writing the last response, before a socket
215
- * will be destroyed. If the server receives new data before the keep-alive
216
- * timeout has fired, it will reset the regular inactivity timeout, i.e.,`server.timeout`.
217
- *
218
- * A value of `0` will disable the keep-alive timeout behavior on incoming
219
- * connections.
220
- * A value of `0` makes the http server behave similarly to Node.js versions prior
221
- * to 8.0.0, which did not have a keep-alive timeout.
222
- *
223
- * The socket timeout logic is set up on connection, so changing this value only
224
- * affects new connections to the server, not any existing connections.
225
- * @since v8.0.0
226
- */
227
- keepAliveTimeout: number;
228
- /**
229
- * Sets the timeout value in milliseconds for receiving the entire request from
230
- * the client.
231
- *
232
- * If the timeout expires, the server responds with status 408 without
233
- * forwarding the request to the request listener and then closes the connection.
234
- *
235
- * It must be set to a non-zero value (e.g. 120 seconds) to protect against
236
- * potential Denial-of-Service attacks in case the server is deployed without a
237
- * reverse proxy in front.
238
- * @since v14.11.0
239
- */
240
- requestTimeout: number;
241
- addListener(event: string, listener: (...args: any[]) => void): this;
242
- addListener(event: 'close', listener: () => void): this;
243
- addListener(event: 'connection', listener: (socket: Socket) => void): this;
244
- addListener(event: 'error', listener: (err: Error) => void): this;
245
- addListener(event: 'listening', listener: () => void): this;
246
- addListener(event: 'checkContinue', listener: RequestListener): this;
247
- addListener(event: 'checkExpectation', listener: RequestListener): this;
248
- addListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
249
- addListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
250
- addListener(event: 'request', listener: RequestListener): this;
251
- addListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
252
- emit(event: string, ...args: any[]): boolean;
253
- emit(event: 'close'): boolean;
254
- emit(event: 'connection', socket: Socket): boolean;
255
- emit(event: 'error', err: Error): boolean;
256
- emit(event: 'listening'): boolean;
257
- emit(event: 'checkContinue', req: IncomingMessage, res: ServerResponse): boolean;
258
- emit(event: 'checkExpectation', req: IncomingMessage, res: ServerResponse): boolean;
259
- emit(event: 'clientError', err: Error, socket: stream.Duplex): boolean;
260
- emit(event: 'connect', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean;
261
- emit(event: 'request', req: IncomingMessage, res: ServerResponse): boolean;
262
- emit(event: 'upgrade', req: IncomingMessage, socket: stream.Duplex, head: Buffer): boolean;
263
- on(event: string, listener: (...args: any[]) => void): this;
264
- on(event: 'close', listener: () => void): this;
265
- on(event: 'connection', listener: (socket: Socket) => void): this;
266
- on(event: 'error', listener: (err: Error) => void): this;
267
- on(event: 'listening', listener: () => void): this;
268
- on(event: 'checkContinue', listener: RequestListener): this;
269
- on(event: 'checkExpectation', listener: RequestListener): this;
270
- on(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
271
- on(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
272
- on(event: 'request', listener: RequestListener): this;
273
- on(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
274
- once(event: string, listener: (...args: any[]) => void): this;
275
- once(event: 'close', listener: () => void): this;
276
- once(event: 'connection', listener: (socket: Socket) => void): this;
277
- once(event: 'error', listener: (err: Error) => void): this;
278
- once(event: 'listening', listener: () => void): this;
279
- once(event: 'checkContinue', listener: RequestListener): this;
280
- once(event: 'checkExpectation', listener: RequestListener): this;
281
- once(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
282
- once(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
283
- once(event: 'request', listener: RequestListener): this;
284
- once(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
285
- prependListener(event: string, listener: (...args: any[]) => void): this;
286
- prependListener(event: 'close', listener: () => void): this;
287
- prependListener(event: 'connection', listener: (socket: Socket) => void): this;
288
- prependListener(event: 'error', listener: (err: Error) => void): this;
289
- prependListener(event: 'listening', listener: () => void): this;
290
- prependListener(event: 'checkContinue', listener: RequestListener): this;
291
- prependListener(event: 'checkExpectation', listener: RequestListener): this;
292
- prependListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
293
- prependListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
294
- prependListener(event: 'request', listener: RequestListener): this;
295
- prependListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
296
- prependOnceListener(event: string, listener: (...args: any[]) => void): this;
297
- prependOnceListener(event: 'close', listener: () => void): this;
298
- prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
299
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
300
- prependOnceListener(event: 'listening', listener: () => void): this;
301
- prependOnceListener(event: 'checkContinue', listener: RequestListener): this;
302
- prependOnceListener(event: 'checkExpectation', listener: RequestListener): this;
303
- prependOnceListener(event: 'clientError', listener: (err: Error, socket: stream.Duplex) => void): this;
304
- prependOnceListener(event: 'connect', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
305
- prependOnceListener(event: 'request', listener: RequestListener): this;
306
- prependOnceListener(event: 'upgrade', listener: (req: IncomingMessage, socket: stream.Duplex, head: Buffer) => void): this;
307
- }
308
- /**
309
- * This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract of outgoing message from
310
- * the perspective of the participants of HTTP transaction.
311
- * @since v0.1.17
312
- */
313
- class OutgoingMessage extends stream.Writable {
314
- readonly req: IncomingMessage;
315
- chunkedEncoding: boolean;
316
- shouldKeepAlive: boolean;
317
- useChunkedEncodingByDefault: boolean;
318
- sendDate: boolean;
319
- /**
320
- * @deprecated Use `writableEnded` instead.
321
- */
322
- finished: boolean;
323
- /**
324
- * Read-only. `true` if the headers were sent, otherwise `false`.
325
- * @since v0.9.3
326
- */
327
- readonly headersSent: boolean;
328
- /**
329
- * Aliases of `outgoingMessage.socket`
330
- * @since v0.3.0
331
- * @deprecated Since v15.12.0 - Use `socket` instead.
332
- */
333
- readonly connection: Socket | null;
334
- /**
335
- * Reference to the underlying socket. Usually, users will not want to access
336
- * this property.
337
- *
338
- * After calling `outgoingMessage.end()`, this property will be nulled.
339
- * @since v0.3.0
340
- */
341
- readonly socket: Socket | null;
342
- constructor();
343
- /**
344
- * occurs, Same as binding to the `timeout` event.
345
- *
346
- * Once a socket is associated with the message and is connected,`socket.setTimeout()` will be called with `msecs` as the first parameter.
347
- * @since v0.9.12
348
- * @param callback Optional function to be called when a timeout
349
- */
350
- setTimeout(msecs: number, callback?: () => void): this;
351
- /**
352
- * Sets a single header value for the header object.
353
- * @since v0.4.0
354
- * @param name Header name
355
- * @param value Header value
356
- */
357
- setHeader(name: string, value: number | string | ReadonlyArray<string>): this;
358
- /**
359
- * Gets the value of HTTP header with the given name. If such a name doesn't
360
- * exist in message, it will be `undefined`.
361
- * @since v0.4.0
362
- * @param name Name of header
363
- */
364
- getHeader(name: string): number | string | string[] | undefined;
365
- /**
366
- * Returns a shallow copy of the current outgoing headers. Since a shallow
367
- * copy is used, array values may be mutated without additional calls to
368
- * various header-related HTTP module methods. The keys of the returned
369
- * object are the header names and the values are the respective header
370
- * values. All header names are lowercase.
371
- *
372
- * The object returned by the `outgoingMessage.getHeaders()` method does
373
- * not prototypically inherit from the JavaScript Object. This means that
374
- * typical Object methods such as `obj.toString()`, `obj.hasOwnProperty()`,
375
- * and others are not defined and will not work.
376
- *
377
- * ```js
378
- * outgoingMessage.setHeader('Foo', 'bar');
379
- * outgoingMessage.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
380
- *
381
- * const headers = outgoingMessage.getHeaders();
382
- * // headers === { foo: 'bar', 'set-cookie': ['foo=bar', 'bar=baz'] }
383
- * ```
384
- * @since v8.0.0
385
- */
386
- getHeaders(): OutgoingHttpHeaders;
387
- /**
388
- * Returns an array of names of headers of the outgoing outgoingMessage. All
389
- * names are lowercase.
390
- * @since v8.0.0
391
- */
392
- getHeaderNames(): string[];
393
- /**
394
- * Returns `true` if the header identified by `name` is currently set in the
395
- * outgoing headers. The header name is case-insensitive.
396
- *
397
- * ```js
398
- * const hasContentType = outgoingMessage.hasHeader('content-type');
399
- * ```
400
- * @since v8.0.0
401
- */
402
- hasHeader(name: string): boolean;
403
- /**
404
- * Removes a header that is queued for implicit sending.
405
- *
406
- * ```js
407
- * outgoingMessage.removeHeader('Content-Encoding');
408
- * ```
409
- * @since v0.4.0
410
- */
411
- removeHeader(name: string): void;
412
- /**
413
- * Adds HTTP trailers (headers but at the end of the message) to the message.
414
- *
415
- * Trailers are **only** be emitted if the message is chunked encoded. If not,
416
- * the trailer will be silently discarded.
417
- *
418
- * HTTP requires the `Trailer` header to be sent to emit trailers,
419
- * with a list of header fields in its value, e.g.
420
- *
421
- * ```js
422
- * message.writeHead(200, { 'Content-Type': 'text/plain',
423
- * 'Trailer': 'Content-MD5' });
424
- * message.write(fileData);
425
- * message.addTrailers({ 'Content-MD5': '7895bf4b8828b55ceaf47747b4bca667' });
426
- * message.end();
427
- * ```
428
- *
429
- * Attempting to set a header field name or value that contains invalid characters
430
- * will result in a `TypeError` being thrown.
431
- * @since v0.3.0
432
- */
433
- addTrailers(headers: OutgoingHttpHeaders | ReadonlyArray<[string, string]>): void;
434
- /**
435
- * Compulsorily flushes the message headers
436
- *
437
- * For efficiency reason, Node.js normally buffers the message headers
438
- * until `outgoingMessage.end()` is called or the first chunk of message data
439
- * is written. It then tries to pack the headers and data into a single TCP
440
- * packet.
441
- *
442
- * It is usually desired (it saves a TCP round-trip), but not when the first
443
- * data is not sent until possibly much later. `outgoingMessage.flushHeaders()`bypasses the optimization and kickstarts the request.
444
- * @since v1.6.0
445
- */
446
- flushHeaders(): void;
447
- }
448
- /**
449
- * This object is created internally by an HTTP server, not by the user. It is
450
- * passed as the second parameter to the `'request'` event.
451
- * @since v0.1.17
452
- */
453
- class ServerResponse extends OutgoingMessage {
454
- /**
455
- * When using implicit headers (not calling `response.writeHead()` explicitly),
456
- * this property controls the status code that will be sent to the client when
457
- * the headers get flushed.
458
- *
459
- * ```js
460
- * response.statusCode = 404;
461
- * ```
462
- *
463
- * After response header was sent to the client, this property indicates the
464
- * status code which was sent out.
465
- * @since v0.4.0
466
- */
467
- statusCode: number;
468
- /**
469
- * When using implicit headers (not calling `response.writeHead()` explicitly),
470
- * this property controls the status message that will be sent to the client when
471
- * the headers get flushed. If this is left as `undefined` then the standard
472
- * message for the status code will be used.
473
- *
474
- * ```js
475
- * response.statusMessage = 'Not found';
476
- * ```
477
- *
478
- * After response header was sent to the client, this property indicates the
479
- * status message which was sent out.
480
- * @since v0.11.8
481
- */
482
- statusMessage: string;
483
- constructor(req: IncomingMessage);
484
- assignSocket(socket: Socket): void;
485
- detachSocket(socket: Socket): void;
486
- /**
487
- * Sends a HTTP/1.1 100 Continue message to the client, indicating that
488
- * the request body should be sent. See the `'checkContinue'` event on`Server`.
489
- * @since v0.3.0
490
- */
491
- writeContinue(callback?: () => void): void;
492
- /**
493
- * Sends a response header to the request. The status code is a 3-digit HTTP
494
- * status code, like `404`. The last argument, `headers`, are the response headers.
495
- * Optionally one can give a human-readable `statusMessage` as the second
496
- * argument.
497
- *
498
- * `headers` may be an `Array` where the keys and values are in the same list.
499
- * It is _not_ a list of tuples. So, the even-numbered offsets are key values,
500
- * and the odd-numbered offsets are the associated values. The array is in the same
501
- * format as `request.rawHeaders`.
502
- *
503
- * Returns a reference to the `ServerResponse`, so that calls can be chained.
504
- *
505
- * ```js
506
- * const body = 'hello world';
507
- * response
508
- * .writeHead(200, {
509
- * 'Content-Length': Buffer.byteLength(body),
510
- * 'Content-Type': 'text/plain'
511
- * })
512
- * .end(body);
513
- * ```
514
- *
515
- * This method must only be called once on a message and it must
516
- * be called before `response.end()` is called.
517
- *
518
- * If `response.write()` or `response.end()` are called before calling
519
- * this, the implicit/mutable headers will be calculated and call this function.
520
- *
521
- * When headers have been set with `response.setHeader()`, they will be merged
522
- * with any headers passed to `response.writeHead()`, with the headers passed
523
- * to `response.writeHead()` given precedence.
524
- *
525
- * If this method is called and `response.setHeader()` has not been called,
526
- * it will directly write the supplied header values onto the network channel
527
- * without caching internally, and the `response.getHeader()` on the header
528
- * will not yield the expected result. If progressive population of headers is
529
- * desired with potential future retrieval and modification, use `response.setHeader()` instead.
530
- *
531
- * ```js
532
- * // Returns content-type = text/plain
533
- * const server = http.createServer((req, res) => {
534
- * res.setHeader('Content-Type', 'text/html');
535
- * res.setHeader('X-Foo', 'bar');
536
- * res.writeHead(200, { 'Content-Type': 'text/plain' });
537
- * res.end('ok');
538
- * });
539
- * ```
540
- *
541
- * `Content-Length` is given in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes. Node.js
542
- * does not check whether `Content-Length` and the length of the body which has
543
- * been transmitted are equal or not.
544
- *
545
- * Attempting to set a header field name or value that contains invalid characters
546
- * will result in a `TypeError` being thrown.
547
- * @since v0.1.30
548
- */
549
- writeHead(statusCode: number, statusMessage?: string, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
550
- writeHead(statusCode: number, headers?: OutgoingHttpHeaders | OutgoingHttpHeader[]): this;
551
- /**
552
- * Sends a HTTP/1.1 102 Processing message to the client, indicating that
553
- * the request body should be sent.
554
- * @since v10.0.0
555
- */
556
- writeProcessing(): void;
557
- }
558
- interface InformationEvent {
559
- statusCode: number;
560
- statusMessage: string;
561
- httpVersion: string;
562
- httpVersionMajor: number;
563
- httpVersionMinor: number;
564
- headers: IncomingHttpHeaders;
565
- rawHeaders: string[];
566
- }
567
- /**
568
- * This object is created internally and returned from {@link request}. It
569
- * represents an _in-progress_ request whose header has already been queued. The
570
- * header is still mutable using the `setHeader(name, value)`,`getHeader(name)`, `removeHeader(name)` API. The actual header will
571
- * be sent along with the first data chunk or when calling `request.end()`.
572
- *
573
- * To get the response, add a listener for `'response'` to the request object.`'response'` will be emitted from the request object when the response
574
- * headers have been received. The `'response'` event is executed with one
575
- * argument which is an instance of {@link IncomingMessage}.
576
- *
577
- * During the `'response'` event, one can add listeners to the
578
- * response object; particularly to listen for the `'data'` event.
579
- *
580
- * If no `'response'` handler is added, then the response will be
581
- * entirely discarded. However, if a `'response'` event handler is added,
582
- * then the data from the response object **must** be consumed, either by
583
- * calling `response.read()` whenever there is a `'readable'` event, or
584
- * by adding a `'data'` handler, or by calling the `.resume()` method.
585
- * Until the data is consumed, the `'end'` event will not fire. Also, until
586
- * the data is read it will consume memory that can eventually lead to a
587
- * 'process out of memory' error.
588
- *
589
- * For backward compatibility, `res` will only emit `'error'` if there is an`'error'` listener registered.
590
- *
591
- * Node.js does not check whether Content-Length and the length of the
592
- * body which has been transmitted are equal or not.
593
- * @since v0.1.17
594
- */
595
- class ClientRequest extends OutgoingMessage {
596
- /**
597
- * The `request.aborted` property will be `true` if the request has
598
- * been aborted.
599
- * @since v0.11.14
600
- */
601
- aborted: boolean;
602
- /**
603
- * The request host.
604
- * @since v14.5.0, v12.19.0
605
- */
606
- host: string;
607
- /**
608
- * The request protocol.
609
- * @since v14.5.0, v12.19.0
610
- */
611
- protocol: string;
612
- constructor(url: string | URL | ClientRequestArgs, cb?: (res: IncomingMessage) => void);
613
- /**
614
- * The request method.
615
- * @since v0.1.97
616
- */
617
- method: string;
618
- /**
619
- * The request path.
620
- * @since v0.4.0
621
- */
622
- path: string;
623
- /**
624
- * Marks the request as aborting. Calling this will cause remaining data
625
- * in the response to be dropped and the socket to be destroyed.
626
- * @since v0.3.8
627
- * @deprecated Since v14.1.0,v13.14.0 - Use `destroy` instead.
628
- */
629
- abort(): void;
630
- onSocket(socket: Socket): void;
631
- /**
632
- * Once a socket is assigned to this request and is connected `socket.setTimeout()` will be called.
633
- * @since v0.5.9
634
- * @param timeout Milliseconds before a request times out.
635
- * @param callback Optional function to be called when a timeout occurs. Same as binding to the `'timeout'` event.
636
- */
637
- setTimeout(timeout: number, callback?: () => void): this;
638
- /**
639
- * Once a socket is assigned to this request and is connected `socket.setNoDelay()` will be called.
640
- * @since v0.5.9
641
- */
642
- setNoDelay(noDelay?: boolean): void;
643
- /**
644
- * Once a socket is assigned to this request and is connected `socket.setKeepAlive()` will be called.
645
- * @since v0.5.9
646
- */
647
- setSocketKeepAlive(enable?: boolean, initialDelay?: number): void;
648
- /**
649
- * Returns an array containing the unique names of the current outgoing raw
650
- * headers. Header names are returned with their exact casing being set.
651
- *
652
- * ```js
653
- * request.setHeader('Foo', 'bar');
654
- * request.setHeader('Set-Cookie', ['foo=bar', 'bar=baz']);
655
- *
656
- * const headerNames = request.getRawHeaderNames();
657
- * // headerNames === ['Foo', 'Set-Cookie']
658
- * ```
659
- * @since v15.13.0
660
- */
661
- getRawHeaderNames(): string[];
662
- addListener(event: 'abort', listener: () => void): this;
663
- addListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
664
- addListener(event: 'continue', listener: () => void): this;
665
- addListener(event: 'information', listener: (info: InformationEvent) => void): this;
666
- addListener(event: 'response', listener: (response: IncomingMessage) => void): this;
667
- addListener(event: 'socket', listener: (socket: Socket) => void): this;
668
- addListener(event: 'timeout', listener: () => void): this;
669
- addListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
670
- addListener(event: 'close', listener: () => void): this;
671
- addListener(event: 'drain', listener: () => void): this;
672
- addListener(event: 'error', listener: (err: Error) => void): this;
673
- addListener(event: 'finish', listener: () => void): this;
674
- addListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
675
- addListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
676
- addListener(event: string | symbol, listener: (...args: any[]) => void): this;
677
- on(event: 'abort', listener: () => void): this;
678
- on(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
679
- on(event: 'continue', listener: () => void): this;
680
- on(event: 'information', listener: (info: InformationEvent) => void): this;
681
- on(event: 'response', listener: (response: IncomingMessage) => void): this;
682
- on(event: 'socket', listener: (socket: Socket) => void): this;
683
- on(event: 'timeout', listener: () => void): this;
684
- on(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
685
- on(event: 'close', listener: () => void): this;
686
- on(event: 'drain', listener: () => void): this;
687
- on(event: 'error', listener: (err: Error) => void): this;
688
- on(event: 'finish', listener: () => void): this;
689
- on(event: 'pipe', listener: (src: stream.Readable) => void): this;
690
- on(event: 'unpipe', listener: (src: stream.Readable) => void): this;
691
- on(event: string | symbol, listener: (...args: any[]) => void): this;
692
- once(event: 'abort', listener: () => void): this;
693
- once(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
694
- once(event: 'continue', listener: () => void): this;
695
- once(event: 'information', listener: (info: InformationEvent) => void): this;
696
- once(event: 'response', listener: (response: IncomingMessage) => void): this;
697
- once(event: 'socket', listener: (socket: Socket) => void): this;
698
- once(event: 'timeout', listener: () => void): this;
699
- once(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
700
- once(event: 'close', listener: () => void): this;
701
- once(event: 'drain', listener: () => void): this;
702
- once(event: 'error', listener: (err: Error) => void): this;
703
- once(event: 'finish', listener: () => void): this;
704
- once(event: 'pipe', listener: (src: stream.Readable) => void): this;
705
- once(event: 'unpipe', listener: (src: stream.Readable) => void): this;
706
- once(event: string | symbol, listener: (...args: any[]) => void): this;
707
- prependListener(event: 'abort', listener: () => void): this;
708
- prependListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
709
- prependListener(event: 'continue', listener: () => void): this;
710
- prependListener(event: 'information', listener: (info: InformationEvent) => void): this;
711
- prependListener(event: 'response', listener: (response: IncomingMessage) => void): this;
712
- prependListener(event: 'socket', listener: (socket: Socket) => void): this;
713
- prependListener(event: 'timeout', listener: () => void): this;
714
- prependListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
715
- prependListener(event: 'close', listener: () => void): this;
716
- prependListener(event: 'drain', listener: () => void): this;
717
- prependListener(event: 'error', listener: (err: Error) => void): this;
718
- prependListener(event: 'finish', listener: () => void): this;
719
- prependListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
720
- prependListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
721
- prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
722
- prependOnceListener(event: 'abort', listener: () => void): this;
723
- prependOnceListener(event: 'connect', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
724
- prependOnceListener(event: 'continue', listener: () => void): this;
725
- prependOnceListener(event: 'information', listener: (info: InformationEvent) => void): this;
726
- prependOnceListener(event: 'response', listener: (response: IncomingMessage) => void): this;
727
- prependOnceListener(event: 'socket', listener: (socket: Socket) => void): this;
728
- prependOnceListener(event: 'timeout', listener: () => void): this;
729
- prependOnceListener(event: 'upgrade', listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
730
- prependOnceListener(event: 'close', listener: () => void): this;
731
- prependOnceListener(event: 'drain', listener: () => void): this;
732
- prependOnceListener(event: 'error', listener: (err: Error) => void): this;
733
- prependOnceListener(event: 'finish', listener: () => void): this;
734
- prependOnceListener(event: 'pipe', listener: (src: stream.Readable) => void): this;
735
- prependOnceListener(event: 'unpipe', listener: (src: stream.Readable) => void): this;
736
- prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
737
- }
738
- /**
739
- * An `IncomingMessage` object is created by {@link Server} or {@link ClientRequest} and passed as the first argument to the `'request'` and `'response'` event respectively. It may be used to
740
- * access response
741
- * status, headers and data.
742
- *
743
- * Different from its `socket` value which is a subclass of `stream.Duplex`, the`IncomingMessage` itself extends `stream.Readable` and is created separately to
744
- * parse and emit the incoming HTTP headers and payload, as the underlying socket
745
- * may be reused multiple times in case of keep-alive.
746
- * @since v0.1.17
747
- */
748
- class IncomingMessage extends stream.Readable {
749
- constructor(socket: Socket);
750
- /**
751
- * The `message.aborted` property will be `true` if the request has
752
- * been aborted.
753
- * @since v10.1.0
754
- */
755
- aborted: boolean;
756
- /**
757
- * In case of server request, the HTTP version sent by the client. In the case of
758
- * client response, the HTTP version of the connected-to server.
759
- * Probably either `'1.1'` or `'1.0'`.
760
- *
761
- * Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second.
762
- * @since v0.1.1
763
- */
764
- httpVersion: string;
765
- httpVersionMajor: number;
766
- httpVersionMinor: number;
767
- /**
768
- * The `message.complete` property will be `true` if a complete HTTP message has
769
- * been received and successfully parsed.
770
- *
771
- * This property is particularly useful as a means of determining if a client or
772
- * server fully transmitted a message before a connection was terminated:
773
- *
774
- * ```js
775
- * const req = http.request({
776
- * host: '127.0.0.1',
777
- * port: 8080,
778
- * method: 'POST'
779
- * }, (res) => {
780
- * res.resume();
781
- * res.on('end', () => {
782
- * if (!res.complete)
783
- * console.error(
784
- * 'The connection was terminated while the message was still being sent');
785
- * });
786
- * });
787
- * ```
788
- * @since v0.3.0
789
- */
790
- complete: boolean;
791
- /**
792
- * Alias for `message.socket`.
793
- * @since v0.1.90
794
- * @deprecated Since v16.0.0 - Use `socket`.
795
- */
796
- connection: Socket;
797
- /**
798
- * The `net.Socket` object associated with the connection.
799
- *
800
- * With HTTPS support, use `request.socket.getPeerCertificate()` to obtain the
801
- * client's authentication details.
802
- *
803
- * This property is guaranteed to be an instance of the `net.Socket` class,
804
- * a subclass of `stream.Duplex`, unless the user specified a socket
805
- * type other than `net.Socket`.
806
- * @since v0.3.0
807
- */
808
- socket: Socket;
809
- /**
810
- * The request/response headers object.
811
- *
812
- * Key-value pairs of header names and values. Header names are lower-cased.
813
- *
814
- * ```js
815
- * // Prints something like:
816
- * //
817
- * // { 'user-agent': 'curl/7.22.0',
818
- * // host: '127.0.0.1:8000',
819
- * // accept: '*' }
820
- * console.log(request.headers);
821
- * ```
822
- *
823
- * Duplicates in raw headers are handled in the following ways, depending on the
824
- * header name:
825
- *
826
- * * Duplicates of `age`, `authorization`, `content-length`, `content-type`,`etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`,`last-modified`, `location`,
827
- * `max-forwards`, `proxy-authorization`, `referer`,`retry-after`, `server`, or `user-agent` are discarded.
828
- * * `set-cookie` is always an array. Duplicates are added to the array.
829
- * * For duplicate `cookie` headers, the values are joined together with '; '.
830
- * * For all other headers, the values are joined together with ', '.
831
- * @since v0.1.5
832
- */
833
- headers: IncomingHttpHeaders;
834
- /**
835
- * The raw request/response headers list exactly as they were received.
836
- *
837
- * The keys and values are in the same list. It is _not_ a
838
- * list of tuples. So, the even-numbered offsets are key values, and the
839
- * odd-numbered offsets are the associated values.
840
- *
841
- * Header names are not lowercased, and duplicates are not merged.
842
- *
843
- * ```js
844
- * // Prints something like:
845
- * //
846
- * // [ 'user-agent',
847
- * // 'this is invalid because there can be only one',
848
- * // 'User-Agent',
849
- * // 'curl/7.22.0',
850
- * // 'Host',
851
- * // '127.0.0.1:8000',
852
- * // 'ACCEPT',
853
- * // '*' ]
854
- * console.log(request.rawHeaders);
855
- * ```
856
- * @since v0.11.6
857
- */
858
- rawHeaders: string[];
859
- /**
860
- * The request/response trailers object. Only populated at the `'end'` event.
861
- * @since v0.3.0
862
- */
863
- trailers: NodeJS.Dict<string>;
864
- /**
865
- * The raw request/response trailer keys and values exactly as they were
866
- * received. Only populated at the `'end'` event.
867
- * @since v0.11.6
868
- */
869
- rawTrailers: string[];
870
- /**
871
- * Calls `message.socket.setTimeout(msecs, callback)`.
872
- * @since v0.5.9
873
- */
874
- setTimeout(msecs: number, callback?: () => void): this;
875
- /**
876
- * **Only valid for request obtained from {@link Server}.**
877
- *
878
- * The request method as a string. Read only. Examples: `'GET'`, `'DELETE'`.
879
- * @since v0.1.1
880
- */
881
- method?: string | undefined;
882
- /**
883
- * **Only valid for request obtained from {@link Server}.**
884
- *
885
- * Request URL string. This contains only the URL that is present in the actual
886
- * HTTP request. Take the following request:
887
- *
888
- * ```http
889
- * GET /status?name=ryan HTTP/1.1
890
- * Accept: text/plain
891
- * ```
892
- *
893
- * To parse the URL into its parts:
894
- *
895
- * ```js
896
- * new URL(request.url, `http://${request.headers.host}`);
897
- * ```
898
- *
899
- * When `request.url` is `'/status?name=ryan'` and`request.headers.host` is `'localhost:3000'`:
900
- *
901
- * ```console
902
- * $ node
903
- * > new URL(request.url, `http://${request.headers.host}`)
904
- * URL {
905
- * href: 'http://localhost:3000/status?name=ryan',
906
- * origin: 'http://localhost:3000',
907
- * protocol: 'http:',
908
- * username: '',
909
- * password: '',
910
- * host: 'localhost:3000',
911
- * hostname: 'localhost',
912
- * port: '3000',
913
- * pathname: '/status',
914
- * search: '?name=ryan',
915
- * searchParams: URLSearchParams { 'name' => 'ryan' },
916
- * hash: ''
917
- * }
918
- * ```
919
- * @since v0.1.90
920
- */
921
- url?: string | undefined;
922
- /**
923
- * **Only valid for response obtained from {@link ClientRequest}.**
924
- *
925
- * The 3-digit HTTP response status code. E.G. `404`.
926
- * @since v0.1.1
927
- */
928
- statusCode?: number | undefined;
929
- /**
930
- * **Only valid for response obtained from {@link ClientRequest}.**
931
- *
932
- * The HTTP response status message (reason phrase). E.G. `OK` or `Internal Server Error`.
933
- * @since v0.11.10
934
- */
935
- statusMessage?: string | undefined;
936
- /**
937
- * Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`is provided, an `'error'` event is emitted on the socket and `error` is passed
938
- * as an argument to any listeners on the event.
939
- * @since v0.3.0
940
- */
941
- destroy(error?: Error): void;
942
- }
943
- interface AgentOptions {
944
- /**
945
- * Keep sockets around in a pool to be used by other requests in the future. Default = false
946
- */
947
- keepAlive?: boolean | undefined;
948
- /**
949
- * When using HTTP KeepAlive, how often to send TCP KeepAlive packets over sockets being kept alive. Default = 1000.
950
- * Only relevant if keepAlive is set to true.
951
- */
952
- keepAliveMsecs?: number | undefined;
953
- /**
954
- * Maximum number of sockets to allow per host. Default for Node 0.10 is 5, default for Node 0.12 is Infinity
955
- */
956
- maxSockets?: number | undefined;
957
- /**
958
- * Maximum number of sockets allowed for all hosts in total. Each request will use a new socket until the maximum is reached. Default: Infinity.
959
- */
960
- maxTotalSockets?: number | undefined;
961
- /**
962
- * Maximum number of sockets to leave open in a free state. Only relevant if keepAlive is set to true. Default = 256.
963
- */
964
- maxFreeSockets?: number | undefined;
965
- /**
966
- * Socket timeout in milliseconds. This will set the timeout after the socket is connected.
967
- */
968
- timeout?: number | undefined;
969
- /**
970
- * Scheduling strategy to apply when picking the next free socket to use.
971
- * @default `lifo`
972
- */
973
- scheduling?: 'fifo' | 'lifo' | undefined;
974
- }
975
- /**
976
- * An `Agent` is responsible for managing connection persistence
977
- * and reuse for HTTP clients. It maintains a queue of pending requests
978
- * for a given host and port, reusing a single socket connection for each
979
- * until the queue is empty, at which time the socket is either destroyed
980
- * or put into a pool where it is kept to be used again for requests to the
981
- * same host and port. Whether it is destroyed or pooled depends on the`keepAlive` `option`.
982
- *
983
- * Pooled connections have TCP Keep-Alive enabled for them, but servers may
984
- * still close idle connections, in which case they will be removed from the
985
- * pool and a new connection will be made when a new HTTP request is made for
986
- * that host and port. Servers may also refuse to allow multiple requests
987
- * over the same connection, in which case the connection will have to be
988
- * remade for every request and cannot be pooled. The `Agent` will still make
989
- * the requests to that server, but each one will occur over a new connection.
990
- *
991
- * When a connection is closed by the client or the server, it is removed
992
- * from the pool. Any unused sockets in the pool will be unrefed so as not
993
- * to keep the Node.js process running when there are no outstanding requests.
994
- * (see `socket.unref()`).
995
- *
996
- * It is good practice, to `destroy()` an `Agent` instance when it is no
997
- * longer in use, because unused sockets consume OS resources.
998
- *
999
- * Sockets are removed from an agent when the socket emits either
1000
- * a `'close'` event or an `'agentRemove'` event. When intending to keep one
1001
- * HTTP request open for a long time without keeping it in the agent, something
1002
- * like the following may be done:
1003
- *
1004
- * ```js
1005
- * http.get(options, (res) => {
1006
- * // Do stuff
1007
- * }).on('socket', (socket) => {
1008
- * socket.emit('agentRemove');
1009
- * });
1010
- * ```
1011
- *
1012
- * An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options
1013
- * will be used
1014
- * for the client connection.
1015
- *
1016
- * `agent:false`:
1017
- *
1018
- * ```js
1019
- * http.get({
1020
- * hostname: 'localhost',
1021
- * port: 80,
1022
- * path: '/',
1023
- * agent: false // Create a new agent just for this one request
1024
- * }, (res) => {
1025
- * // Do stuff with response
1026
- * });
1027
- * ```
1028
- * @since v0.3.4
1029
- */
1030
- class Agent {
1031
- /**
1032
- * By default set to 256\. For agents with `keepAlive` enabled, this
1033
- * sets the maximum number of sockets that will be left open in the free
1034
- * state.
1035
- * @since v0.11.7
1036
- */
1037
- maxFreeSockets: number;
1038
- /**
1039
- * By default set to `Infinity`. Determines how many concurrent sockets the agent
1040
- * can have open per origin. Origin is the returned value of `agent.getName()`.
1041
- * @since v0.3.6
1042
- */
1043
- maxSockets: number;
1044
- /**
1045
- * By default set to `Infinity`. Determines how many concurrent sockets the agent
1046
- * can have open. Unlike `maxSockets`, this parameter applies across all origins.
1047
- * @since v14.5.0, v12.19.0
1048
- */
1049
- maxTotalSockets: number;
1050
- /**
1051
- * An object which contains arrays of sockets currently awaiting use by
1052
- * the agent when `keepAlive` is enabled. Do not modify.
1053
- *
1054
- * Sockets in the `freeSockets` list will be automatically destroyed and
1055
- * removed from the array on `'timeout'`.
1056
- * @since v0.11.4
1057
- */
1058
- readonly freeSockets: NodeJS.ReadOnlyDict<Socket[]>;
1059
- /**
1060
- * An object which contains arrays of sockets currently in use by the
1061
- * agent. Do not modify.
1062
- * @since v0.3.6
1063
- */
1064
- readonly sockets: NodeJS.ReadOnlyDict<Socket[]>;
1065
- /**
1066
- * An object which contains queues of requests that have not yet been assigned to
1067
- * sockets. Do not modify.
1068
- * @since v0.5.9
1069
- */
1070
- readonly requests: NodeJS.ReadOnlyDict<IncomingMessage[]>;
1071
- constructor(opts?: AgentOptions);
1072
- /**
1073
- * Destroy any sockets that are currently in use by the agent.
1074
- *
1075
- * It is usually not necessary to do this. However, if using an
1076
- * agent with `keepAlive` enabled, then it is best to explicitly shut down
1077
- * the agent when it is no longer needed. Otherwise,
1078
- * sockets might stay open for quite a long time before the server
1079
- * terminates them.
1080
- * @since v0.11.4
1081
- */
1082
- destroy(): void;
1083
- }
1084
- const METHODS: string[];
1085
- const STATUS_CODES: {
1086
- [errorCode: number]: string | undefined;
1087
- [errorCode: string]: string | undefined;
1088
- };
1089
- /**
1090
- * Returns a new instance of {@link Server}.
1091
- *
1092
- * The `requestListener` is a function which is automatically
1093
- * added to the `'request'` event.
1094
- * @since v0.1.13
1095
- */
1096
- function createServer(requestListener?: RequestListener): Server;
1097
- function createServer(options: ServerOptions, requestListener?: RequestListener): Server;
1098
- // although RequestOptions are passed as ClientRequestArgs to ClientRequest directly,
1099
- // create interface RequestOptions would make the naming more clear to developers
1100
- interface RequestOptions extends ClientRequestArgs {}
1101
- /**
1102
- * Node.js maintains several connections per server to make HTTP requests.
1103
- * This function allows one to transparently issue requests.
1104
- *
1105
- * `url` can be a string or a `URL` object. If `url` is a
1106
- * string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
1107
- *
1108
- * If both `url` and `options` are specified, the objects are merged, with the`options` properties taking precedence.
1109
- *
1110
- * The optional `callback` parameter will be added as a one-time listener for
1111
- * the `'response'` event.
1112
- *
1113
- * `http.request()` returns an instance of the {@link ClientRequest} class. The `ClientRequest` instance is a writable stream. If one needs to
1114
- * upload a file with a POST request, then write to the `ClientRequest` object.
1115
- *
1116
- * ```js
1117
- * const http = require('http');
1118
- *
1119
- * const postData = JSON.stringify({
1120
- * 'msg': 'Hello World!'
1121
- * });
1122
- *
1123
- * const options = {
1124
- * hostname: 'www.google.com',
1125
- * port: 80,
1126
- * path: '/upload',
1127
- * method: 'POST',
1128
- * headers: {
1129
- * 'Content-Type': 'application/json',
1130
- * 'Content-Length': Buffer.byteLength(postData)
1131
- * }
1132
- * };
1133
- *
1134
- * const req = http.request(options, (res) => {
1135
- * console.log(`STATUS: ${res.statusCode}`);
1136
- * console.log(`HEADERS: ${JSON.stringify(res.headers)}`);
1137
- * res.setEncoding('utf8');
1138
- * res.on('data', (chunk) => {
1139
- * console.log(`BODY: ${chunk}`);
1140
- * });
1141
- * res.on('end', () => {
1142
- * console.log('No more data in response.');
1143
- * });
1144
- * });
1145
- *
1146
- * req.on('error', (e) => {
1147
- * console.error(`problem with request: ${e.message}`);
1148
- * });
1149
- *
1150
- * // Write data to request body
1151
- * req.write(postData);
1152
- * req.end();
1153
- * ```
1154
- *
1155
- * In the example `req.end()` was called. With `http.request()` one
1156
- * must always call `req.end()` to signify the end of the request -
1157
- * even if there is no data being written to the request body.
1158
- *
1159
- * If any error is encountered during the request (be that with DNS resolution,
1160
- * TCP level errors, or actual HTTP parse errors) an `'error'` event is emitted
1161
- * on the returned request object. As with all `'error'` events, if no listeners
1162
- * are registered the error will be thrown.
1163
- *
1164
- * There are a few special headers that should be noted.
1165
- *
1166
- * * Sending a 'Connection: keep-alive' will notify Node.js that the connection to
1167
- * the server should be persisted until the next request.
1168
- * * Sending a 'Content-Length' header will disable the default chunked encoding.
1169
- * * Sending an 'Expect' header will immediately send the request headers.
1170
- * Usually, when sending 'Expect: 100-continue', both a timeout and a listener
1171
- * for the `'continue'` event should be set. See RFC 2616 Section 8.2.3 for more
1172
- * information.
1173
- * * Sending an Authorization header will override using the `auth` option
1174
- * to compute basic authentication.
1175
- *
1176
- * Example using a `URL` as `options`:
1177
- *
1178
- * ```js
1179
- * const options = new URL('http://abc:xyz@example.com');
1180
- *
1181
- * const req = http.request(options, (res) => {
1182
- * // ...
1183
- * });
1184
- * ```
1185
- *
1186
- * In a successful request, the following events will be emitted in the following
1187
- * order:
1188
- *
1189
- * * `'socket'`
1190
- * * `'response'`
1191
- * * `'data'` any number of times, on the `res` object
1192
- * (`'data'` will not be emitted at all if the response body is empty, for
1193
- * instance, in most redirects)
1194
- * * `'end'` on the `res` object
1195
- * * `'close'`
1196
- *
1197
- * In the case of a connection error, the following events will be emitted:
1198
- *
1199
- * * `'socket'`
1200
- * * `'error'`
1201
- * * `'close'`
1202
- *
1203
- * In the case of a premature connection close before the response is received,
1204
- * the following events will be emitted in the following order:
1205
- *
1206
- * * `'socket'`
1207
- * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
1208
- * * `'close'`
1209
- *
1210
- * In the case of a premature connection close after the response is received,
1211
- * the following events will be emitted in the following order:
1212
- *
1213
- * * `'socket'`
1214
- * * `'response'`
1215
- * * `'data'` any number of times, on the `res` object
1216
- * * (connection closed here)
1217
- * * `'aborted'` on the `res` object
1218
- * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`.
1219
- * * `'close'`
1220
- * * `'close'` on the `res` object
1221
- *
1222
- * If `req.destroy()` is called before a socket is assigned, the following
1223
- * events will be emitted in the following order:
1224
- *
1225
- * * (`req.destroy()` called here)
1226
- * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
1227
- * * `'close'`
1228
- *
1229
- * If `req.destroy()` is called before the connection succeeds, the following
1230
- * events will be emitted in the following order:
1231
- *
1232
- * * `'socket'`
1233
- * * (`req.destroy()` called here)
1234
- * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
1235
- * * `'close'`
1236
- *
1237
- * If `req.destroy()` is called after the response is received, the following
1238
- * events will be emitted in the following order:
1239
- *
1240
- * * `'socket'`
1241
- * * `'response'`
1242
- * * `'data'` any number of times, on the `res` object
1243
- * * (`req.destroy()` called here)
1244
- * * `'aborted'` on the `res` object
1245
- * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`.
1246
- * * `'close'`
1247
- * * `'close'` on the `res` object
1248
- *
1249
- * If `req.abort()` is called before a socket is assigned, the following
1250
- * events will be emitted in the following order:
1251
- *
1252
- * * (`req.abort()` called here)
1253
- * * `'abort'`
1254
- * * `'close'`
1255
- *
1256
- * If `req.abort()` is called before the connection succeeds, the following
1257
- * events will be emitted in the following order:
1258
- *
1259
- * * `'socket'`
1260
- * * (`req.abort()` called here)
1261
- * * `'abort'`
1262
- * * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
1263
- * * `'close'`
1264
- *
1265
- * If `req.abort()` is called after the response is received, the following
1266
- * events will be emitted in the following order:
1267
- *
1268
- * * `'socket'`
1269
- * * `'response'`
1270
- * * `'data'` any number of times, on the `res` object
1271
- * * (`req.abort()` called here)
1272
- * * `'abort'`
1273
- * * `'aborted'` on the `res` object
1274
- * * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`.
1275
- * * `'close'`
1276
- * * `'close'` on the `res` object
1277
- *
1278
- * Setting the `timeout` option or using the `setTimeout()` function will
1279
- * not abort the request or do anything besides add a `'timeout'` event.
1280
- *
1281
- * Passing an `AbortSignal` and then calling `abort` on the corresponding`AbortController` will behave the same way as calling `.destroy()` on the
1282
- * request itself.
1283
- * @since v0.3.6
1284
- */
1285
- function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1286
- function request(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
1287
- /**
1288
- * Since most requests are GET requests without bodies, Node.js provides this
1289
- * convenience method. The only difference between this method and {@link request} is that it sets the method to GET and calls `req.end()`automatically. The callback must take care to consume the
1290
- * response
1291
- * data for reasons stated in {@link ClientRequest} section.
1292
- *
1293
- * The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}.
1294
- *
1295
- * JSON fetching example:
1296
- *
1297
- * ```js
1298
- * http.get('http://localhost:8000/', (res) => {
1299
- * const { statusCode } = res;
1300
- * const contentType = res.headers['content-type'];
1301
- *
1302
- * let error;
1303
- * // Any 2xx status code signals a successful response but
1304
- * // here we're only checking for 200.
1305
- * if (statusCode !== 200) {
1306
- * error = new Error('Request Failed.\n' +
1307
- * `Status Code: ${statusCode}`);
1308
- * } else if (!/^application\/json/.test(contentType)) {
1309
- * error = new Error('Invalid content-type.\n' +
1310
- * `Expected application/json but received ${contentType}`);
1311
- * }
1312
- * if (error) {
1313
- * console.error(error.message);
1314
- * // Consume response data to free up memory
1315
- * res.resume();
1316
- * return;
1317
- * }
1318
- *
1319
- * res.setEncoding('utf8');
1320
- * let rawData = '';
1321
- * res.on('data', (chunk) => { rawData += chunk; });
1322
- * res.on('end', () => {
1323
- * try {
1324
- * const parsedData = JSON.parse(rawData);
1325
- * console.log(parsedData);
1326
- * } catch (e) {
1327
- * console.error(e.message);
1328
- * }
1329
- * });
1330
- * }).on('error', (e) => {
1331
- * console.error(`Got error: ${e.message}`);
1332
- * });
1333
- *
1334
- * // Create a local server to receive data from
1335
- * const server = http.createServer((req, res) => {
1336
- * res.writeHead(200, { 'Content-Type': 'application/json' });
1337
- * res.end(JSON.stringify({
1338
- * data: 'Hello World!'
1339
- * }));
1340
- * });
1341
- *
1342
- * server.listen(8000);
1343
- * ```
1344
- * @since v0.3.6
1345
- * @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`. Properties that are inherited from the prototype are ignored.
1346
- */
1347
- function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
1348
- function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
1349
- let globalAgent: Agent;
1350
- /**
1351
- * Read-only property specifying the maximum allowed size of HTTP headers in bytes.
1352
- * Defaults to 16KB. Configurable using the `--max-http-header-size` CLI option.
1353
- */
1354
- const maxHeaderSize: number;
1355
- }
1356
- declare module 'node:http' {
1357
- export * from 'http';
1358
- }