isomorfeus-puppetmaster 0.4.1 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (932) hide show
  1. checksums.yaml +4 -4
  2. data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +21 -18
  3. data/lib/isomorfeus/puppetmaster/driver_registration.rb +4 -4
  4. data/lib/isomorfeus/puppetmaster/server_registration.rb +0 -52
  5. data/lib/isomorfeus/puppetmaster/version.rb +1 -1
  6. data/lib/isomorfeus/puppetmaster.rb +6 -3
  7. data/lib/isomorfeus-puppetmaster.rb +2 -1
  8. data/node_modules/.bin/extract-zip +12 -0
  9. data/node_modules/.bin/extract-zip.cmd +17 -0
  10. data/node_modules/.bin/extract-zip.ps1 +28 -0
  11. data/node_modules/.bin/mkdirp +12 -0
  12. data/node_modules/.bin/mkdirp.cmd +17 -0
  13. data/node_modules/.bin/mkdirp.ps1 +28 -0
  14. data/node_modules/.bin/rimraf +12 -0
  15. data/node_modules/.bin/rimraf.cmd +17 -0
  16. data/node_modules/.bin/rimraf.ps1 +28 -0
  17. data/node_modules/.package-lock.json +574 -0
  18. data/node_modules/@types/node/LICENSE +21 -0
  19. data/node_modules/@types/node/README.md +16 -0
  20. data/node_modules/@types/node/assert/strict.d.ts +8 -0
  21. data/node_modules/@types/node/assert.d.ts +912 -0
  22. data/node_modules/@types/node/async_hooks.d.ts +497 -0
  23. data/node_modules/@types/node/buffer.d.ts +2142 -0
  24. data/node_modules/@types/node/child_process.d.ts +1355 -0
  25. data/node_modules/@types/node/cluster.d.ts +414 -0
  26. data/node_modules/@types/node/console.d.ts +407 -0
  27. data/node_modules/@types/node/constants.d.ts +18 -0
  28. data/node_modules/@types/node/crypto.d.ts +3224 -0
  29. data/node_modules/@types/node/dgram.d.ts +545 -0
  30. data/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
  31. data/node_modules/@types/node/dns/promises.d.ts +357 -0
  32. data/node_modules/@types/node/dns.d.ts +643 -0
  33. data/node_modules/@types/node/domain.d.ts +169 -0
  34. data/node_modules/@types/node/events.d.ts +623 -0
  35. data/node_modules/@types/node/fs/promises.d.ts +997 -0
  36. data/node_modules/@types/node/fs.d.ts +3723 -0
  37. data/node_modules/@types/node/globals.d.ts +285 -0
  38. data/node_modules/@types/node/globals.global.d.ts +1 -0
  39. data/node_modules/@types/node/http.d.ts +1358 -0
  40. data/node_modules/@types/node/http2.d.ts +2100 -0
  41. data/node_modules/@types/node/https.d.ts +391 -0
  42. data/node_modules/@types/node/index.d.ts +131 -0
  43. data/node_modules/@types/node/inspector.d.ts +2738 -0
  44. data/node_modules/@types/node/module.d.ts +114 -0
  45. data/node_modules/@types/node/net.d.ts +783 -0
  46. data/node_modules/@types/node/os.d.ts +455 -0
  47. data/node_modules/@types/node/package.json +230 -0
  48. data/node_modules/@types/node/path.d.ts +172 -0
  49. data/node_modules/@types/node/perf_hooks.d.ts +555 -0
  50. data/node_modules/@types/node/process.d.ts +1477 -0
  51. data/node_modules/@types/node/punycode.d.ts +117 -0
  52. data/node_modules/@types/node/querystring.d.ts +131 -0
  53. data/node_modules/@types/node/readline.d.ts +542 -0
  54. data/node_modules/@types/node/repl.d.ts +424 -0
  55. data/node_modules/@types/node/stream/consumers.d.ts +24 -0
  56. data/node_modules/@types/node/stream/promises.d.ts +42 -0
  57. data/node_modules/@types/node/stream/web.d.ts +6 -0
  58. data/node_modules/@types/node/stream.d.ts +1181 -0
  59. data/node_modules/@types/node/string_decoder.d.ts +67 -0
  60. data/node_modules/@types/node/timers/promises.d.ts +68 -0
  61. data/node_modules/@types/node/timers.d.ts +94 -0
  62. data/node_modules/@types/node/tls.d.ts +1019 -0
  63. data/node_modules/@types/node/trace_events.d.ts +161 -0
  64. data/node_modules/@types/node/tty.d.ts +206 -0
  65. data/node_modules/@types/node/url.d.ts +798 -0
  66. data/node_modules/@types/node/util.d.ts +1556 -0
  67. data/node_modules/@types/node/v8.d.ts +378 -0
  68. data/node_modules/@types/node/vm.d.ts +504 -0
  69. data/node_modules/@types/node/wasi.d.ts +153 -0
  70. data/node_modules/@types/node/worker_threads.d.ts +649 -0
  71. data/node_modules/@types/node/zlib.d.ts +517 -0
  72. data/node_modules/@types/yauzl/LICENSE +21 -0
  73. data/node_modules/@types/yauzl/README.md +16 -0
  74. data/node_modules/@types/yauzl/index.d.ts +98 -0
  75. data/node_modules/@types/yauzl/package.json +27 -0
  76. data/node_modules/agent-base/README.md +145 -0
  77. data/node_modules/agent-base/dist/src/index.d.ts +78 -0
  78. data/node_modules/agent-base/dist/src/index.js +203 -0
  79. data/node_modules/agent-base/dist/src/index.js.map +1 -0
  80. data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
  81. data/node_modules/agent-base/dist/src/promisify.js +18 -0
  82. data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
  83. data/node_modules/agent-base/package.json +64 -0
  84. data/node_modules/agent-base/src/index.ts +345 -0
  85. data/node_modules/agent-base/src/promisify.ts +33 -0
  86. data/node_modules/balanced-match/.github/FUNDING.yml +2 -0
  87. data/node_modules/balanced-match/LICENSE.md +21 -0
  88. data/node_modules/balanced-match/README.md +97 -0
  89. data/node_modules/balanced-match/index.js +62 -0
  90. data/node_modules/balanced-match/package.json +48 -0
  91. data/node_modules/base64-js/LICENSE +21 -0
  92. data/node_modules/base64-js/README.md +34 -0
  93. data/node_modules/base64-js/base64js.min.js +1 -0
  94. data/node_modules/base64-js/index.d.ts +3 -0
  95. data/node_modules/base64-js/index.js +150 -0
  96. data/node_modules/base64-js/package.json +47 -0
  97. data/node_modules/bl/.travis.yml +17 -0
  98. data/node_modules/bl/BufferList.js +396 -0
  99. data/node_modules/bl/LICENSE.md +13 -0
  100. data/node_modules/bl/README.md +247 -0
  101. data/node_modules/bl/bl.js +84 -0
  102. data/node_modules/bl/package.json +37 -0
  103. data/node_modules/bl/test/convert.js +21 -0
  104. data/node_modules/bl/test/indexOf.js +492 -0
  105. data/node_modules/bl/test/isBufferList.js +32 -0
  106. data/node_modules/bl/test/test.js +869 -0
  107. data/node_modules/brace-expansion/LICENSE +21 -0
  108. data/node_modules/brace-expansion/README.md +129 -0
  109. data/node_modules/brace-expansion/index.js +201 -0
  110. data/node_modules/brace-expansion/package.json +47 -0
  111. data/node_modules/buffer/AUTHORS.md +70 -0
  112. data/node_modules/buffer/LICENSE +21 -0
  113. data/node_modules/buffer/README.md +410 -0
  114. data/node_modules/buffer/index.d.ts +186 -0
  115. data/node_modules/buffer/index.js +1817 -0
  116. data/node_modules/buffer/package.json +96 -0
  117. data/node_modules/buffer-crc32/LICENSE +19 -0
  118. data/node_modules/buffer-crc32/README.md +47 -0
  119. data/node_modules/buffer-crc32/index.js +111 -0
  120. data/node_modules/buffer-crc32/package.json +39 -0
  121. data/node_modules/chownr/LICENSE +15 -0
  122. data/node_modules/chownr/README.md +3 -0
  123. data/node_modules/chownr/chownr.js +167 -0
  124. data/node_modules/chownr/package.json +29 -0
  125. data/node_modules/concat-map/.travis.yml +4 -0
  126. data/node_modules/concat-map/LICENSE +18 -0
  127. data/node_modules/concat-map/README.markdown +62 -0
  128. data/node_modules/concat-map/example/map.js +6 -0
  129. data/node_modules/concat-map/index.js +13 -0
  130. data/node_modules/concat-map/package.json +43 -0
  131. data/node_modules/concat-map/test/map.js +39 -0
  132. data/node_modules/debug/LICENSE +19 -0
  133. data/node_modules/debug/README.md +455 -0
  134. data/node_modules/debug/package.json +59 -0
  135. data/node_modules/debug/src/browser.js +269 -0
  136. data/node_modules/debug/src/common.js +261 -0
  137. data/node_modules/debug/src/index.js +10 -0
  138. data/node_modules/debug/src/node.js +263 -0
  139. data/node_modules/devtools-protocol/LICENSE +27 -0
  140. data/node_modules/devtools-protocol/README.md +12 -0
  141. data/node_modules/devtools-protocol/changelog.md +10491 -0
  142. data/node_modules/devtools-protocol/externs/protocol_externs.js +9734 -0
  143. data/node_modules/devtools-protocol/json/browser_protocol.json +20641 -0
  144. data/node_modules/devtools-protocol/json/js_protocol.json +3581 -0
  145. data/node_modules/devtools-protocol/package.json +18 -0
  146. data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +9637 -0
  147. data/node_modules/devtools-protocol/pdl/js_protocol.pdl +1678 -0
  148. data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +4321 -0
  149. data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +3683 -0
  150. data/node_modules/devtools-protocol/types/protocol.d.ts +15538 -0
  151. data/node_modules/end-of-stream/LICENSE +21 -0
  152. data/node_modules/end-of-stream/README.md +54 -0
  153. data/node_modules/end-of-stream/index.js +94 -0
  154. data/node_modules/end-of-stream/package.json +37 -0
  155. data/node_modules/extract-zip/LICENSE +23 -0
  156. data/node_modules/extract-zip/cli.js +19 -0
  157. data/node_modules/extract-zip/index.d.ts +21 -0
  158. data/node_modules/extract-zip/index.js +173 -0
  159. data/node_modules/extract-zip/package.json +80 -0
  160. data/node_modules/extract-zip/readme.md +57 -0
  161. data/node_modules/fd-slicer/.npmignore +2 -0
  162. data/node_modules/fd-slicer/.travis.yml +7 -0
  163. data/node_modules/fd-slicer/CHANGELOG.md +49 -0
  164. data/node_modules/fd-slicer/LICENSE +21 -0
  165. data/node_modules/fd-slicer/README.md +199 -0
  166. data/node_modules/fd-slicer/index.js +296 -0
  167. data/node_modules/fd-slicer/package.json +36 -0
  168. data/node_modules/fd-slicer/test/test.js +350 -0
  169. data/node_modules/find-up/index.d.ts +137 -0
  170. data/node_modules/find-up/index.js +89 -0
  171. data/node_modules/find-up/license +9 -0
  172. data/node_modules/find-up/package.json +53 -0
  173. data/node_modules/find-up/readme.md +156 -0
  174. data/node_modules/fs-constants/LICENSE +21 -0
  175. data/node_modules/fs-constants/README.md +26 -0
  176. data/node_modules/fs-constants/browser.js +1 -0
  177. data/node_modules/fs-constants/index.js +1 -0
  178. data/node_modules/fs-constants/package.json +19 -0
  179. data/node_modules/fs.realpath/LICENSE +43 -0
  180. data/node_modules/fs.realpath/README.md +33 -0
  181. data/node_modules/fs.realpath/index.js +66 -0
  182. data/node_modules/fs.realpath/old.js +303 -0
  183. data/node_modules/fs.realpath/package.json +26 -0
  184. data/node_modules/get-stream/buffer-stream.js +52 -0
  185. data/node_modules/get-stream/index.d.ts +108 -0
  186. data/node_modules/get-stream/index.js +60 -0
  187. data/node_modules/get-stream/license +9 -0
  188. data/node_modules/get-stream/package.json +50 -0
  189. data/node_modules/get-stream/readme.md +124 -0
  190. data/node_modules/glob/LICENSE +21 -0
  191. data/node_modules/glob/README.md +375 -0
  192. data/node_modules/glob/changelog.md +67 -0
  193. data/node_modules/glob/common.js +234 -0
  194. data/node_modules/glob/glob.js +788 -0
  195. data/node_modules/glob/package.json +51 -0
  196. data/node_modules/glob/sync.js +484 -0
  197. data/node_modules/https-proxy-agent/README.md +137 -0
  198. data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
  199. data/node_modules/https-proxy-agent/dist/agent.js +180 -0
  200. data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
  201. data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
  202. data/node_modules/https-proxy-agent/dist/index.js +14 -0
  203. data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
  204. data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
  205. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
  206. data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
  207. data/node_modules/https-proxy-agent/package.json +56 -0
  208. data/node_modules/ieee754/LICENSE +11 -0
  209. data/node_modules/ieee754/README.md +51 -0
  210. data/node_modules/ieee754/index.d.ts +10 -0
  211. data/node_modules/ieee754/index.js +85 -0
  212. data/node_modules/ieee754/package.json +52 -0
  213. data/node_modules/inflight/LICENSE +15 -0
  214. data/node_modules/inflight/README.md +37 -0
  215. data/node_modules/inflight/inflight.js +54 -0
  216. data/node_modules/inflight/package.json +29 -0
  217. data/node_modules/inherits/LICENSE +16 -0
  218. data/node_modules/inherits/README.md +42 -0
  219. data/node_modules/inherits/inherits.js +9 -0
  220. data/node_modules/inherits/inherits_browser.js +27 -0
  221. data/node_modules/inherits/package.json +29 -0
  222. data/node_modules/locate-path/index.d.ts +83 -0
  223. data/node_modules/locate-path/index.js +65 -0
  224. data/node_modules/locate-path/license +9 -0
  225. data/node_modules/locate-path/package.json +45 -0
  226. data/node_modules/locate-path/readme.md +122 -0
  227. data/node_modules/minimatch/LICENSE +15 -0
  228. data/node_modules/minimatch/README.md +209 -0
  229. data/node_modules/minimatch/minimatch.js +923 -0
  230. data/node_modules/minimatch/package.json +30 -0
  231. data/node_modules/minimist/.travis.yml +8 -0
  232. data/node_modules/minimist/LICENSE +18 -0
  233. data/node_modules/minimist/example/parse.js +2 -0
  234. data/node_modules/minimist/index.js +245 -0
  235. data/node_modules/minimist/package.json +45 -0
  236. data/node_modules/minimist/readme.markdown +95 -0
  237. data/node_modules/minimist/test/all_bool.js +32 -0
  238. data/node_modules/minimist/test/bool.js +178 -0
  239. data/node_modules/minimist/test/dash.js +31 -0
  240. data/node_modules/minimist/test/default_bool.js +35 -0
  241. data/node_modules/minimist/test/dotted.js +22 -0
  242. data/node_modules/minimist/test/kv_short.js +16 -0
  243. data/node_modules/minimist/test/long.js +31 -0
  244. data/node_modules/minimist/test/num.js +36 -0
  245. data/node_modules/minimist/test/parse.js +197 -0
  246. data/node_modules/minimist/test/parse_modified.js +9 -0
  247. data/node_modules/minimist/test/proto.js +44 -0
  248. data/node_modules/minimist/test/short.js +67 -0
  249. data/node_modules/minimist/test/stop_early.js +15 -0
  250. data/node_modules/minimist/test/unknown.js +102 -0
  251. data/node_modules/minimist/test/whitespace.js +8 -0
  252. data/node_modules/mkdirp/LICENSE +21 -0
  253. data/node_modules/mkdirp/bin/cmd.js +33 -0
  254. data/node_modules/mkdirp/bin/usage.txt +12 -0
  255. data/node_modules/mkdirp/index.js +99 -0
  256. data/node_modules/mkdirp/package.json +34 -0
  257. data/node_modules/mkdirp/readme.markdown +100 -0
  258. data/node_modules/ms/index.js +162 -0
  259. data/node_modules/ms/license.md +21 -0
  260. data/node_modules/ms/package.json +37 -0
  261. data/node_modules/ms/readme.md +60 -0
  262. data/node_modules/node-fetch/CHANGELOG.md +272 -0
  263. data/node_modules/node-fetch/LICENSE.md +22 -0
  264. data/node_modules/node-fetch/README.md +590 -0
  265. data/node_modules/node-fetch/browser.js +25 -0
  266. data/node_modules/node-fetch/lib/index.es.js +1640 -0
  267. data/node_modules/node-fetch/lib/index.js +1649 -0
  268. data/node_modules/node-fetch/lib/index.mjs +1638 -0
  269. data/node_modules/node-fetch/package.json +66 -0
  270. data/node_modules/once/LICENSE +15 -0
  271. data/node_modules/once/README.md +79 -0
  272. data/node_modules/once/once.js +42 -0
  273. data/node_modules/once/package.json +33 -0
  274. data/node_modules/p-limit/index.d.ts +38 -0
  275. data/node_modules/p-limit/index.js +57 -0
  276. data/node_modules/p-limit/license +9 -0
  277. data/node_modules/p-limit/package.json +52 -0
  278. data/node_modules/p-limit/readme.md +101 -0
  279. data/node_modules/p-locate/index.d.ts +64 -0
  280. data/node_modules/p-locate/index.js +52 -0
  281. data/node_modules/p-locate/license +9 -0
  282. data/node_modules/p-locate/package.json +53 -0
  283. data/node_modules/p-locate/readme.md +90 -0
  284. data/node_modules/p-try/index.d.ts +39 -0
  285. data/node_modules/p-try/index.js +9 -0
  286. data/node_modules/p-try/license +9 -0
  287. data/node_modules/p-try/package.json +42 -0
  288. data/node_modules/p-try/readme.md +58 -0
  289. data/node_modules/path-exists/index.d.ts +28 -0
  290. data/node_modules/path-exists/index.js +23 -0
  291. data/node_modules/path-exists/license +9 -0
  292. data/node_modules/path-exists/package.json +39 -0
  293. data/node_modules/path-exists/readme.md +52 -0
  294. data/node_modules/path-is-absolute/index.js +20 -0
  295. data/node_modules/path-is-absolute/license +21 -0
  296. data/node_modules/path-is-absolute/package.json +43 -0
  297. data/node_modules/path-is-absolute/readme.md +59 -0
  298. data/node_modules/pend/LICENSE +23 -0
  299. data/node_modules/pend/README.md +41 -0
  300. data/node_modules/pend/index.js +55 -0
  301. data/node_modules/pend/package.json +18 -0
  302. data/node_modules/pend/test.js +137 -0
  303. data/node_modules/pkg-dir/index.d.ts +44 -0
  304. data/node_modules/pkg-dir/index.js +17 -0
  305. data/node_modules/pkg-dir/license +9 -0
  306. data/node_modules/pkg-dir/package.json +56 -0
  307. data/node_modules/pkg-dir/readme.md +66 -0
  308. data/node_modules/progress/CHANGELOG.md +115 -0
  309. data/node_modules/progress/LICENSE +22 -0
  310. data/node_modules/progress/Makefile +8 -0
  311. data/node_modules/progress/Readme.md +146 -0
  312. data/node_modules/progress/index.js +1 -0
  313. data/node_modules/progress/lib/node-progress.js +235 -0
  314. data/node_modules/progress/package.json +26 -0
  315. data/node_modules/proxy-from-env/.eslintrc +29 -0
  316. data/node_modules/proxy-from-env/.travis.yml +10 -0
  317. data/node_modules/proxy-from-env/LICENSE +20 -0
  318. data/node_modules/proxy-from-env/README.md +131 -0
  319. data/node_modules/proxy-from-env/index.js +108 -0
  320. data/node_modules/proxy-from-env/package.json +34 -0
  321. data/node_modules/proxy-from-env/test.js +483 -0
  322. data/node_modules/pump/.travis.yml +5 -0
  323. data/node_modules/pump/LICENSE +21 -0
  324. data/node_modules/pump/README.md +65 -0
  325. data/node_modules/pump/index.js +82 -0
  326. data/node_modules/pump/package.json +24 -0
  327. data/node_modules/pump/test-browser.js +66 -0
  328. data/node_modules/pump/test-node.js +53 -0
  329. data/node_modules/puppeteer-core/CHANGELOG.md +226 -0
  330. data/node_modules/puppeteer-core/LICENSE +202 -0
  331. data/node_modules/puppeteer-core/README.md +483 -0
  332. data/node_modules/puppeteer-core/cjs-entry-core.js +29 -0
  333. data/node_modules/puppeteer-core/cjs-entry.js +29 -0
  334. data/node_modules/puppeteer-core/install.js +89 -0
  335. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +111 -0
  336. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +1 -0
  337. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +81 -0
  338. data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +1 -0
  339. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +176 -0
  340. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -0
  341. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +361 -0
  342. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +1 -0
  343. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  344. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  345. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +85 -0
  346. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -0
  347. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +438 -0
  348. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -0
  349. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +528 -0
  350. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -0
  351. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +54 -0
  352. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  353. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +98 -0
  354. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -0
  355. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  356. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  357. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +35 -0
  358. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  359. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +130 -0
  360. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -0
  361. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +281 -0
  362. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -0
  363. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +25 -0
  364. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  365. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +18 -0
  366. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +1 -0
  367. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +73 -0
  368. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  369. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +65 -0
  370. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -0
  371. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +189 -0
  372. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -0
  373. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +329 -0
  374. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -0
  375. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +173 -0
  376. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -0
  377. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +655 -0
  378. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -0
  379. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +53 -0
  380. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -0
  381. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +82 -0
  382. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +1 -0
  383. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  384. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  385. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +951 -0
  386. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -0
  387. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +75 -0
  388. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -0
  389. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +98 -0
  390. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -0
  391. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +25 -0
  392. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -0
  393. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +38 -0
  394. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -0
  395. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +42 -0
  396. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -0
  397. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +49 -0
  398. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -0
  399. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +61 -0
  400. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -0
  401. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +18 -0
  402. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +1 -0
  403. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +93 -0
  404. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -0
  405. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +117 -0
  406. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -0
  407. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +82 -0
  408. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +1 -0
  409. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +87 -0
  410. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +1 -0
  411. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +194 -0
  412. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  413. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +322 -0
  414. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -0
  415. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +59 -0
  416. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -0
  417. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +72 -0
  418. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -0
  419. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +733 -0
  420. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -0
  421. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +965 -0
  422. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -0
  423. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +341 -0
  424. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  425. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +547 -0
  426. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -0
  427. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +126 -0
  428. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  429. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +155 -0
  430. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -0
  431. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +360 -0
  432. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -0
  433. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +545 -0
  434. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -0
  435. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +469 -0
  436. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -0
  437. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +803 -0
  438. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -0
  439. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  440. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  441. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +149 -0
  442. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -0
  443. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +27 -0
  444. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  445. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +34 -0
  446. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -0
  447. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +97 -0
  448. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -0
  449. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +341 -0
  450. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -0
  451. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +157 -0
  452. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -0
  453. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +35 -0
  454. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -0
  455. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +2011 -0
  456. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -0
  457. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +2427 -0
  458. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -0
  459. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +21 -0
  460. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +1 -0
  461. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +18 -0
  462. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +1 -0
  463. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +160 -0
  464. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -0
  465. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +162 -0
  466. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -0
  467. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  468. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  469. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +3 -0
  470. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +1 -0
  471. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +65 -0
  472. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -0
  473. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +166 -0
  474. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -0
  475. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +61 -0
  476. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  477. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +77 -0
  478. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -0
  479. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +99 -0
  480. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -0
  481. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +145 -0
  482. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -0
  483. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +28 -0
  484. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  485. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +48 -0
  486. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -0
  487. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +47 -0
  488. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -0
  489. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +104 -0
  490. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -0
  491. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  492. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  493. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +407 -0
  494. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -0
  495. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +99 -0
  496. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -0
  497. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +113 -0
  498. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +1 -0
  499. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +22 -0
  500. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -0
  501. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +29 -0
  502. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -0
  503. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +17 -0
  504. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -0
  505. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +44 -0
  506. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +1 -0
  507. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +85 -0
  508. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +1 -0
  509. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +328 -0
  510. data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -0
  511. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +17 -0
  512. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +1 -0
  513. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +20 -0
  514. data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +1 -0
  515. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +18 -0
  516. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -0
  517. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +45 -0
  518. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +1 -0
  519. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +18 -0
  520. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +1 -0
  521. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +27 -0
  522. data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +1 -0
  523. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +134 -0
  524. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  525. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +502 -0
  526. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -0
  527. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +40 -0
  528. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  529. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +225 -0
  530. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -0
  531. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +131 -0
  532. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  533. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +18 -0
  534. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -0
  535. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +17 -0
  536. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -0
  537. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +574 -0
  538. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -0
  539. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  540. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  541. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +42 -0
  542. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  543. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +30 -0
  544. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -0
  545. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +65 -0
  546. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -0
  547. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +154 -0
  548. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -0
  549. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +189 -0
  550. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -0
  551. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +18 -0
  552. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
  553. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +160 -0
  554. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -0
  555. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +18 -0
  556. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  557. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +25 -0
  558. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -0
  559. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +18 -0
  560. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +1 -0
  561. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +24 -0
  562. data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -0
  563. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +22 -0
  564. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +1 -0
  565. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +23 -0
  566. data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +1 -0
  567. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +18 -0
  568. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +1 -0
  569. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +24 -0
  570. data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -0
  571. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +28 -0
  572. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +1 -0
  573. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +57 -0
  574. data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +1 -0
  575. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +111 -0
  576. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
  577. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +81 -0
  578. data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +1 -0
  579. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
  580. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
  581. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +357 -0
  582. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +1 -0
  583. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
  584. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
  585. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +82 -0
  586. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -0
  587. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +438 -0
  588. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
  589. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +523 -0
  590. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -0
  591. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +54 -0
  592. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
  593. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +75 -0
  594. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -0
  595. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
  596. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
  597. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +31 -0
  598. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
  599. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +130 -0
  600. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
  601. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +276 -0
  602. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -0
  603. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +25 -0
  604. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
  605. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +17 -0
  606. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +1 -0
  607. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +73 -0
  608. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
  609. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +61 -0
  610. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -0
  611. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +189 -0
  612. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
  613. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +323 -0
  614. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -0
  615. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +173 -0
  616. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
  617. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +650 -0
  618. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -0
  619. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +53 -0
  620. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
  621. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +78 -0
  622. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +1 -0
  623. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +41 -0
  624. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
  625. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +948 -0
  626. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -0
  627. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +75 -0
  628. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
  629. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +94 -0
  630. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +1 -0
  631. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
  632. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
  633. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +34 -0
  634. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +1 -0
  635. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +42 -0
  636. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
  637. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +44 -0
  638. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -0
  639. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +61 -0
  640. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
  641. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +17 -0
  642. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +1 -0
  643. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +93 -0
  644. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
  645. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +110 -0
  646. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +1 -0
  647. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +82 -0
  648. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
  649. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +84 -0
  650. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +1 -0
  651. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +194 -0
  652. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
  653. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +318 -0
  654. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -0
  655. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +59 -0
  656. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
  657. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +68 -0
  658. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +1 -0
  659. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +733 -0
  660. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
  661. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +960 -0
  662. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -0
  663. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +341 -0
  664. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
  665. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +543 -0
  666. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -0
  667. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +126 -0
  668. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
  669. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +151 -0
  670. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -0
  671. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +360 -0
  672. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
  673. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +539 -0
  674. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -0
  675. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +469 -0
  676. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
  677. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +778 -0
  678. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -0
  679. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +66 -0
  680. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
  681. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
  682. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -0
  683. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +27 -0
  684. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -0
  685. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +31 -0
  686. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -0
  687. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +97 -0
  688. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
  689. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +337 -0
  690. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -0
  691. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +157 -0
  692. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
  693. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +32 -0
  694. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -0
  695. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +2011 -0
  696. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
  697. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +2423 -0
  698. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -0
  699. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +21 -0
  700. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
  701. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +17 -0
  702. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +1 -0
  703. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +160 -0
  704. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
  705. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +158 -0
  706. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +1 -0
  707. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +52 -0
  708. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
  709. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +2 -0
  710. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +1 -0
  711. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +65 -0
  712. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
  713. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +158 -0
  714. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +1 -0
  715. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
  716. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
  717. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +73 -0
  718. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -0
  719. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +99 -0
  720. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
  721. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +141 -0
  722. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -0
  723. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
  724. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
  725. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +44 -0
  726. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -0
  727. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
  728. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
  729. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +100 -0
  730. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -0
  731. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
  732. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
  733. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +404 -0
  734. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -0
  735. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +99 -0
  736. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
  737. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +109 -0
  738. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +1 -0
  739. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +22 -0
  740. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
  741. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +25 -0
  742. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -0
  743. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +17 -0
  744. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
  745. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +21 -0
  746. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +1 -0
  747. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +85 -0
  748. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
  749. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +306 -0
  750. data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -0
  751. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +17 -0
  752. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +1 -0
  753. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +17 -0
  754. data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +1 -0
  755. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +18 -0
  756. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
  757. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +38 -0
  758. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +1 -0
  759. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +18 -0
  760. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
  761. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +23 -0
  762. data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +1 -0
  763. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +134 -0
  764. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
  765. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +476 -0
  766. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -0
  767. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
  768. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
  769. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +199 -0
  770. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -0
  771. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +131 -0
  772. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
  773. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +17 -0
  774. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -0
  775. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +17 -0
  776. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
  777. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +552 -0
  778. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -0
  779. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
  780. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
  781. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +35 -0
  782. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
  783. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +30 -0
  784. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
  785. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +61 -0
  786. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +1 -0
  787. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +154 -0
  788. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
  789. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +182 -0
  790. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +1 -0
  791. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +18 -0
  792. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -0
  793. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +152 -0
  794. data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -0
  795. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
  796. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
  797. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
  798. data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +1 -0
  799. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +18 -0
  800. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +1 -0
  801. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +22 -0
  802. data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +1 -0
  803. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +22 -0
  804. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +1 -0
  805. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +20 -0
  806. data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +1 -0
  807. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +18 -0
  808. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +1 -0
  809. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +22 -0
  810. data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +1 -0
  811. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +28 -0
  812. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
  813. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +54 -0
  814. data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +1 -0
  815. data/node_modules/puppeteer-core/lib/types.d.ts +6911 -0
  816. data/node_modules/puppeteer-core/package.json +122 -0
  817. data/node_modules/puppeteer-core/typescript-if-required.js +61 -0
  818. data/node_modules/readable-stream/CONTRIBUTING.md +38 -0
  819. data/node_modules/readable-stream/GOVERNANCE.md +136 -0
  820. data/node_modules/readable-stream/LICENSE +47 -0
  821. data/node_modules/readable-stream/README.md +106 -0
  822. data/node_modules/readable-stream/errors-browser.js +127 -0
  823. data/node_modules/readable-stream/errors.js +116 -0
  824. data/node_modules/readable-stream/experimentalWarning.js +17 -0
  825. data/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
  826. data/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
  827. data/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
  828. data/node_modules/readable-stream/lib/_stream_transform.js +201 -0
  829. data/node_modules/readable-stream/lib/_stream_writable.js +697 -0
  830. data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
  831. data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
  832. data/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
  833. data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
  834. data/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
  835. data/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
  836. data/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
  837. data/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
  838. data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
  839. data/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
  840. data/node_modules/readable-stream/package.json +68 -0
  841. data/node_modules/readable-stream/readable-browser.js +9 -0
  842. data/node_modules/readable-stream/readable.js +16 -0
  843. data/node_modules/rimraf/CHANGELOG.md +65 -0
  844. data/node_modules/rimraf/LICENSE +15 -0
  845. data/node_modules/rimraf/README.md +101 -0
  846. data/node_modules/rimraf/bin.js +68 -0
  847. data/node_modules/rimraf/package.json +32 -0
  848. data/node_modules/rimraf/rimraf.js +360 -0
  849. data/node_modules/safe-buffer/LICENSE +21 -0
  850. data/node_modules/safe-buffer/README.md +584 -0
  851. data/node_modules/safe-buffer/index.d.ts +187 -0
  852. data/node_modules/safe-buffer/index.js +65 -0
  853. data/node_modules/safe-buffer/package.json +51 -0
  854. data/node_modules/string_decoder/LICENSE +48 -0
  855. data/node_modules/string_decoder/README.md +47 -0
  856. data/node_modules/string_decoder/lib/string_decoder.js +296 -0
  857. data/node_modules/string_decoder/package.json +34 -0
  858. data/node_modules/tar-fs/.travis.yml +5 -0
  859. data/node_modules/tar-fs/LICENSE +21 -0
  860. data/node_modules/tar-fs/README.md +163 -0
  861. data/node_modules/tar-fs/index.js +348 -0
  862. data/node_modules/tar-fs/package.json +41 -0
  863. data/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
  864. data/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
  865. data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
  866. data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
  867. data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
  868. data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
  869. data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
  870. data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
  871. data/node_modules/tar-fs/test/fixtures/e/file +0 -0
  872. data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
  873. data/node_modules/tar-fs/test/index.js +346 -0
  874. data/node_modules/tar-stream/LICENSE +21 -0
  875. data/node_modules/tar-stream/README.md +168 -0
  876. data/node_modules/tar-stream/extract.js +257 -0
  877. data/node_modules/tar-stream/headers.js +295 -0
  878. data/node_modules/tar-stream/index.js +2 -0
  879. data/node_modules/tar-stream/pack.js +255 -0
  880. data/node_modules/tar-stream/package.json +58 -0
  881. data/node_modules/tar-stream/sandbox.js +11 -0
  882. data/node_modules/through/.travis.yml +5 -0
  883. data/node_modules/through/LICENSE.APACHE2 +15 -0
  884. data/node_modules/through/LICENSE.MIT +24 -0
  885. data/node_modules/through/index.js +108 -0
  886. data/node_modules/through/package.json +36 -0
  887. data/node_modules/through/readme.markdown +64 -0
  888. data/node_modules/through/test/async.js +28 -0
  889. data/node_modules/through/test/auto-destroy.js +30 -0
  890. data/node_modules/through/test/buffering.js +71 -0
  891. data/node_modules/through/test/end.js +45 -0
  892. data/node_modules/through/test/index.js +133 -0
  893. data/node_modules/unbzip2-stream/LICENSE +24 -0
  894. data/node_modules/unbzip2-stream/README.md +59 -0
  895. data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -0
  896. data/node_modules/unbzip2-stream/index.js +92 -0
  897. data/node_modules/unbzip2-stream/lib/bit_iterator.js +39 -0
  898. data/node_modules/unbzip2-stream/lib/bzip2.js +367 -0
  899. data/node_modules/unbzip2-stream/package.json +51 -0
  900. data/node_modules/util-deprecate/History.md +16 -0
  901. data/node_modules/util-deprecate/LICENSE +24 -0
  902. data/node_modules/util-deprecate/README.md +53 -0
  903. data/node_modules/util-deprecate/browser.js +67 -0
  904. data/node_modules/util-deprecate/node.js +6 -0
  905. data/node_modules/util-deprecate/package.json +27 -0
  906. data/node_modules/wrappy/LICENSE +15 -0
  907. data/node_modules/wrappy/README.md +36 -0
  908. data/node_modules/wrappy/package.json +29 -0
  909. data/node_modules/wrappy/wrappy.js +33 -0
  910. data/node_modules/ws/LICENSE +21 -0
  911. data/node_modules/ws/README.md +496 -0
  912. data/node_modules/ws/browser.js +8 -0
  913. data/node_modules/ws/index.js +10 -0
  914. data/node_modules/ws/lib/buffer-util.js +129 -0
  915. data/node_modules/ws/lib/constants.js +10 -0
  916. data/node_modules/ws/lib/event-target.js +184 -0
  917. data/node_modules/ws/lib/extension.js +223 -0
  918. data/node_modules/ws/lib/limiter.js +55 -0
  919. data/node_modules/ws/lib/permessage-deflate.js +517 -0
  920. data/node_modules/ws/lib/receiver.js +507 -0
  921. data/node_modules/ws/lib/sender.js +405 -0
  922. data/node_modules/ws/lib/stream.js +165 -0
  923. data/node_modules/ws/lib/validation.js +104 -0
  924. data/node_modules/ws/lib/websocket-server.js +418 -0
  925. data/node_modules/ws/lib/websocket.js +942 -0
  926. data/node_modules/ws/package.json +56 -0
  927. data/node_modules/yauzl/LICENSE +21 -0
  928. data/node_modules/yauzl/README.md +658 -0
  929. data/node_modules/yauzl/index.js +796 -0
  930. data/node_modules/yauzl/package.json +40 -0
  931. data/package.json +6 -0
  932. metadata +940 -58
@@ -0,0 +1,285 @@
1
+ // Declare "static" methods in Error
2
+ interface ErrorConstructor {
3
+ /** Create .stack property on a target object */
4
+ captureStackTrace(targetObject: object, constructorOpt?: Function): void;
5
+
6
+ /**
7
+ * Optional override for formatting stack traces
8
+ *
9
+ * @see https://v8.dev/docs/stack-trace-api#customizing-stack-traces
10
+ */
11
+ prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined;
12
+
13
+ stackTraceLimit: number;
14
+ }
15
+
16
+ /*-----------------------------------------------*
17
+ * *
18
+ * GLOBAL *
19
+ * *
20
+ ------------------------------------------------*/
21
+
22
+ // For backwards compability
23
+ interface NodeRequire extends NodeJS.Require { }
24
+ interface RequireResolve extends NodeJS.RequireResolve { }
25
+ interface NodeModule extends NodeJS.Module { }
26
+
27
+ declare var process: NodeJS.Process;
28
+ declare var console: Console;
29
+
30
+ declare var __filename: string;
31
+ declare var __dirname: string;
32
+
33
+ declare var require: NodeRequire;
34
+ declare var module: NodeModule;
35
+
36
+ // Same as module.exports
37
+ declare var exports: any;
38
+
39
+ /**
40
+ * Only available if `--expose-gc` is passed to the process.
41
+ */
42
+ declare var gc: undefined | (() => void);
43
+
44
+ //#region borrowed
45
+ // from https://github.com/microsoft/TypeScript/blob/38da7c600c83e7b31193a62495239a0fe478cb67/lib/lib.webworker.d.ts#L633 until moved to separate lib
46
+ /** A controller object that allows you to abort one or more DOM requests as and when desired. */
47
+ interface AbortController {
48
+ /**
49
+ * Returns the AbortSignal object associated with this object.
50
+ */
51
+
52
+ readonly signal: AbortSignal;
53
+ /**
54
+ * Invoking this method will set this object's AbortSignal's aborted flag and signal to any observers that the associated activity is to be aborted.
55
+ */
56
+ abort(): void;
57
+ }
58
+
59
+ /** A signal object that allows you to communicate with a DOM request (such as a Fetch) and abort it if required via an AbortController object. */
60
+ interface AbortSignal {
61
+ /**
62
+ * Returns true if this AbortSignal's AbortController has signaled to abort, and false otherwise.
63
+ */
64
+ readonly aborted: boolean;
65
+ }
66
+
67
+ declare var AbortController: {
68
+ prototype: AbortController;
69
+ new(): AbortController;
70
+ };
71
+
72
+ declare var AbortSignal: {
73
+ prototype: AbortSignal;
74
+ new(): AbortSignal;
75
+ // TODO: Add abort() static
76
+ };
77
+ //#endregion borrowed
78
+
79
+ //#region ArrayLike.at()
80
+ interface RelativeIndexable<T> {
81
+ /**
82
+ * Takes an integer value and returns the item at that index,
83
+ * allowing for positive and negative integers.
84
+ * Negative integers count back from the last item in the array.
85
+ */
86
+ at(index: number): T | undefined;
87
+ }
88
+ interface String extends RelativeIndexable<string> {}
89
+ interface Array<T> extends RelativeIndexable<T> {}
90
+ interface Int8Array extends RelativeIndexable<number> {}
91
+ interface Uint8Array extends RelativeIndexable<number> {}
92
+ interface Uint8ClampedArray extends RelativeIndexable<number> {}
93
+ interface Int16Array extends RelativeIndexable<number> {}
94
+ interface Uint16Array extends RelativeIndexable<number> {}
95
+ interface Int32Array extends RelativeIndexable<number> {}
96
+ interface Uint32Array extends RelativeIndexable<number> {}
97
+ interface Float32Array extends RelativeIndexable<number> {}
98
+ interface Float64Array extends RelativeIndexable<number> {}
99
+ interface BigInt64Array extends RelativeIndexable<bigint> {}
100
+ interface BigUint64Array extends RelativeIndexable<bigint> {}
101
+ //#endregion ArrayLike.at() end
102
+
103
+ /*----------------------------------------------*
104
+ * *
105
+ * GLOBAL INTERFACES *
106
+ * *
107
+ *-----------------------------------------------*/
108
+ declare namespace NodeJS {
109
+ interface CallSite {
110
+ /**
111
+ * Value of "this"
112
+ */
113
+ getThis(): unknown;
114
+
115
+ /**
116
+ * Type of "this" as a string.
117
+ * This is the name of the function stored in the constructor field of
118
+ * "this", if available. Otherwise the object's [[Class]] internal
119
+ * property.
120
+ */
121
+ getTypeName(): string | null;
122
+
123
+ /**
124
+ * Current function
125
+ */
126
+ getFunction(): Function | undefined;
127
+
128
+ /**
129
+ * Name of the current function, typically its name property.
130
+ * If a name property is not available an attempt will be made to try
131
+ * to infer a name from the function's context.
132
+ */
133
+ getFunctionName(): string | null;
134
+
135
+ /**
136
+ * Name of the property [of "this" or one of its prototypes] that holds
137
+ * the current function
138
+ */
139
+ getMethodName(): string | null;
140
+
141
+ /**
142
+ * Name of the script [if this function was defined in a script]
143
+ */
144
+ getFileName(): string | null;
145
+
146
+ /**
147
+ * Current line number [if this function was defined in a script]
148
+ */
149
+ getLineNumber(): number | null;
150
+
151
+ /**
152
+ * Current column number [if this function was defined in a script]
153
+ */
154
+ getColumnNumber(): number | null;
155
+
156
+ /**
157
+ * A call site object representing the location where eval was called
158
+ * [if this function was created using a call to eval]
159
+ */
160
+ getEvalOrigin(): string | undefined;
161
+
162
+ /**
163
+ * Is this a toplevel invocation, that is, is "this" the global object?
164
+ */
165
+ isToplevel(): boolean;
166
+
167
+ /**
168
+ * Does this call take place in code defined by a call to eval?
169
+ */
170
+ isEval(): boolean;
171
+
172
+ /**
173
+ * Is this call in native V8 code?
174
+ */
175
+ isNative(): boolean;
176
+
177
+ /**
178
+ * Is this a constructor call?
179
+ */
180
+ isConstructor(): boolean;
181
+ }
182
+
183
+ interface ErrnoException extends Error {
184
+ errno?: number | undefined;
185
+ code?: string | undefined;
186
+ path?: string | undefined;
187
+ syscall?: string | undefined;
188
+ stack?: string | undefined;
189
+ }
190
+
191
+ interface ReadableStream extends EventEmitter {
192
+ readable: boolean;
193
+ read(size?: number): string | Buffer;
194
+ setEncoding(encoding: BufferEncoding): this;
195
+ pause(): this;
196
+ resume(): this;
197
+ isPaused(): boolean;
198
+ pipe<T extends WritableStream>(destination: T, options?: { end?: boolean | undefined; }): T;
199
+ unpipe(destination?: WritableStream): this;
200
+ unshift(chunk: string | Uint8Array, encoding?: BufferEncoding): void;
201
+ wrap(oldStream: ReadableStream): this;
202
+ [Symbol.asyncIterator](): AsyncIterableIterator<string | Buffer>;
203
+ }
204
+
205
+ interface WritableStream extends EventEmitter {
206
+ writable: boolean;
207
+ write(buffer: Uint8Array | string, cb?: (err?: Error | null) => void): boolean;
208
+ write(str: string, encoding?: BufferEncoding, cb?: (err?: Error | null) => void): boolean;
209
+ end(cb?: () => void): void;
210
+ end(data: string | Uint8Array, cb?: () => void): void;
211
+ end(str: string, encoding?: BufferEncoding, cb?: () => void): void;
212
+ }
213
+
214
+ interface ReadWriteStream extends ReadableStream, WritableStream { }
215
+
216
+ interface RefCounted {
217
+ ref(): this;
218
+ unref(): this;
219
+ }
220
+
221
+ type TypedArray =
222
+ | Uint8Array
223
+ | Uint8ClampedArray
224
+ | Uint16Array
225
+ | Uint32Array
226
+ | Int8Array
227
+ | Int16Array
228
+ | Int32Array
229
+ | BigUint64Array
230
+ | BigInt64Array
231
+ | Float32Array
232
+ | Float64Array;
233
+ type ArrayBufferView = TypedArray | DataView;
234
+
235
+ interface Require {
236
+ (id: string): any;
237
+ resolve: RequireResolve;
238
+ cache: Dict<NodeModule>;
239
+ /**
240
+ * @deprecated
241
+ */
242
+ extensions: RequireExtensions;
243
+ main: Module | undefined;
244
+ }
245
+
246
+ interface RequireResolve {
247
+ (id: string, options?: { paths?: string[] | undefined; }): string;
248
+ paths(request: string): string[] | null;
249
+ }
250
+
251
+ interface RequireExtensions extends Dict<(m: Module, filename: string) => any> {
252
+ '.js': (m: Module, filename: string) => any;
253
+ '.json': (m: Module, filename: string) => any;
254
+ '.node': (m: Module, filename: string) => any;
255
+ }
256
+ interface Module {
257
+ /**
258
+ * `true` if the module is running during the Node.js preload
259
+ */
260
+ isPreloading: boolean;
261
+ exports: any;
262
+ require: Require;
263
+ id: string;
264
+ filename: string;
265
+ loaded: boolean;
266
+ /** @deprecated since 14.6.0 Please use `require.main` and `module.children` instead. */
267
+ parent: Module | null | undefined;
268
+ children: Module[];
269
+ /**
270
+ * @since 11.14.0
271
+ *
272
+ * The directory name of the module. This is usually the same as the path.dirname() of the module.id.
273
+ */
274
+ path: string;
275
+ paths: string[];
276
+ }
277
+
278
+ interface Dict<T> {
279
+ [key: string]: T | undefined;
280
+ }
281
+
282
+ interface ReadOnlyDict<T> {
283
+ readonly [key: string]: T | undefined;
284
+ }
285
+ }
@@ -0,0 +1 @@
1
+ declare var global: typeof globalThis;
@@ -0,0 +1,1358 @@
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
+ }