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.
- checksums.yaml +4 -4
- data/lib/isomorfeus/puppetmaster/driver/puppeteer.rb +21 -18
- data/lib/isomorfeus/puppetmaster/driver_registration.rb +4 -4
- data/lib/isomorfeus/puppetmaster/server_registration.rb +0 -52
- data/lib/isomorfeus/puppetmaster/version.rb +1 -1
- data/lib/isomorfeus/puppetmaster.rb +6 -3
- data/lib/isomorfeus-puppetmaster.rb +2 -1
- data/node_modules/.bin/extract-zip +12 -0
- data/node_modules/.bin/extract-zip.cmd +17 -0
- data/node_modules/.bin/extract-zip.ps1 +28 -0
- data/node_modules/.bin/mkdirp +12 -0
- data/node_modules/.bin/mkdirp.cmd +17 -0
- data/node_modules/.bin/mkdirp.ps1 +28 -0
- data/node_modules/.bin/rimraf +12 -0
- data/node_modules/.bin/rimraf.cmd +17 -0
- data/node_modules/.bin/rimraf.ps1 +28 -0
- data/node_modules/.package-lock.json +574 -0
- data/node_modules/@types/node/LICENSE +21 -0
- data/node_modules/@types/node/README.md +16 -0
- data/node_modules/@types/node/assert/strict.d.ts +8 -0
- data/node_modules/@types/node/assert.d.ts +912 -0
- data/node_modules/@types/node/async_hooks.d.ts +497 -0
- data/node_modules/@types/node/buffer.d.ts +2142 -0
- data/node_modules/@types/node/child_process.d.ts +1355 -0
- data/node_modules/@types/node/cluster.d.ts +414 -0
- data/node_modules/@types/node/console.d.ts +407 -0
- data/node_modules/@types/node/constants.d.ts +18 -0
- data/node_modules/@types/node/crypto.d.ts +3224 -0
- data/node_modules/@types/node/dgram.d.ts +545 -0
- data/node_modules/@types/node/diagnostics_channel.d.ts +128 -0
- data/node_modules/@types/node/dns/promises.d.ts +357 -0
- data/node_modules/@types/node/dns.d.ts +643 -0
- data/node_modules/@types/node/domain.d.ts +169 -0
- data/node_modules/@types/node/events.d.ts +623 -0
- data/node_modules/@types/node/fs/promises.d.ts +997 -0
- data/node_modules/@types/node/fs.d.ts +3723 -0
- data/node_modules/@types/node/globals.d.ts +285 -0
- data/node_modules/@types/node/globals.global.d.ts +1 -0
- data/node_modules/@types/node/http.d.ts +1358 -0
- data/node_modules/@types/node/http2.d.ts +2100 -0
- data/node_modules/@types/node/https.d.ts +391 -0
- data/node_modules/@types/node/index.d.ts +131 -0
- data/node_modules/@types/node/inspector.d.ts +2738 -0
- data/node_modules/@types/node/module.d.ts +114 -0
- data/node_modules/@types/node/net.d.ts +783 -0
- data/node_modules/@types/node/os.d.ts +455 -0
- data/node_modules/@types/node/package.json +230 -0
- data/node_modules/@types/node/path.d.ts +172 -0
- data/node_modules/@types/node/perf_hooks.d.ts +555 -0
- data/node_modules/@types/node/process.d.ts +1477 -0
- data/node_modules/@types/node/punycode.d.ts +117 -0
- data/node_modules/@types/node/querystring.d.ts +131 -0
- data/node_modules/@types/node/readline.d.ts +542 -0
- data/node_modules/@types/node/repl.d.ts +424 -0
- data/node_modules/@types/node/stream/consumers.d.ts +24 -0
- data/node_modules/@types/node/stream/promises.d.ts +42 -0
- data/node_modules/@types/node/stream/web.d.ts +6 -0
- data/node_modules/@types/node/stream.d.ts +1181 -0
- data/node_modules/@types/node/string_decoder.d.ts +67 -0
- data/node_modules/@types/node/timers/promises.d.ts +68 -0
- data/node_modules/@types/node/timers.d.ts +94 -0
- data/node_modules/@types/node/tls.d.ts +1019 -0
- data/node_modules/@types/node/trace_events.d.ts +161 -0
- data/node_modules/@types/node/tty.d.ts +206 -0
- data/node_modules/@types/node/url.d.ts +798 -0
- data/node_modules/@types/node/util.d.ts +1556 -0
- data/node_modules/@types/node/v8.d.ts +378 -0
- data/node_modules/@types/node/vm.d.ts +504 -0
- data/node_modules/@types/node/wasi.d.ts +153 -0
- data/node_modules/@types/node/worker_threads.d.ts +649 -0
- data/node_modules/@types/node/zlib.d.ts +517 -0
- data/node_modules/@types/yauzl/LICENSE +21 -0
- data/node_modules/@types/yauzl/README.md +16 -0
- data/node_modules/@types/yauzl/index.d.ts +98 -0
- data/node_modules/@types/yauzl/package.json +27 -0
- data/node_modules/agent-base/README.md +145 -0
- data/node_modules/agent-base/dist/src/index.d.ts +78 -0
- data/node_modules/agent-base/dist/src/index.js +203 -0
- data/node_modules/agent-base/dist/src/index.js.map +1 -0
- data/node_modules/agent-base/dist/src/promisify.d.ts +4 -0
- data/node_modules/agent-base/dist/src/promisify.js +18 -0
- data/node_modules/agent-base/dist/src/promisify.js.map +1 -0
- data/node_modules/agent-base/package.json +64 -0
- data/node_modules/agent-base/src/index.ts +345 -0
- data/node_modules/agent-base/src/promisify.ts +33 -0
- data/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- data/node_modules/balanced-match/LICENSE.md +21 -0
- data/node_modules/balanced-match/README.md +97 -0
- data/node_modules/balanced-match/index.js +62 -0
- data/node_modules/balanced-match/package.json +48 -0
- data/node_modules/base64-js/LICENSE +21 -0
- data/node_modules/base64-js/README.md +34 -0
- data/node_modules/base64-js/base64js.min.js +1 -0
- data/node_modules/base64-js/index.d.ts +3 -0
- data/node_modules/base64-js/index.js +150 -0
- data/node_modules/base64-js/package.json +47 -0
- data/node_modules/bl/.travis.yml +17 -0
- data/node_modules/bl/BufferList.js +396 -0
- data/node_modules/bl/LICENSE.md +13 -0
- data/node_modules/bl/README.md +247 -0
- data/node_modules/bl/bl.js +84 -0
- data/node_modules/bl/package.json +37 -0
- data/node_modules/bl/test/convert.js +21 -0
- data/node_modules/bl/test/indexOf.js +492 -0
- data/node_modules/bl/test/isBufferList.js +32 -0
- data/node_modules/bl/test/test.js +869 -0
- data/node_modules/brace-expansion/LICENSE +21 -0
- data/node_modules/brace-expansion/README.md +129 -0
- data/node_modules/brace-expansion/index.js +201 -0
- data/node_modules/brace-expansion/package.json +47 -0
- data/node_modules/buffer/AUTHORS.md +70 -0
- data/node_modules/buffer/LICENSE +21 -0
- data/node_modules/buffer/README.md +410 -0
- data/node_modules/buffer/index.d.ts +186 -0
- data/node_modules/buffer/index.js +1817 -0
- data/node_modules/buffer/package.json +96 -0
- data/node_modules/buffer-crc32/LICENSE +19 -0
- data/node_modules/buffer-crc32/README.md +47 -0
- data/node_modules/buffer-crc32/index.js +111 -0
- data/node_modules/buffer-crc32/package.json +39 -0
- data/node_modules/chownr/LICENSE +15 -0
- data/node_modules/chownr/README.md +3 -0
- data/node_modules/chownr/chownr.js +167 -0
- data/node_modules/chownr/package.json +29 -0
- data/node_modules/concat-map/.travis.yml +4 -0
- data/node_modules/concat-map/LICENSE +18 -0
- data/node_modules/concat-map/README.markdown +62 -0
- data/node_modules/concat-map/example/map.js +6 -0
- data/node_modules/concat-map/index.js +13 -0
- data/node_modules/concat-map/package.json +43 -0
- data/node_modules/concat-map/test/map.js +39 -0
- data/node_modules/debug/LICENSE +19 -0
- data/node_modules/debug/README.md +455 -0
- data/node_modules/debug/package.json +59 -0
- data/node_modules/debug/src/browser.js +269 -0
- data/node_modules/debug/src/common.js +261 -0
- data/node_modules/debug/src/index.js +10 -0
- data/node_modules/debug/src/node.js +263 -0
- data/node_modules/devtools-protocol/LICENSE +27 -0
- data/node_modules/devtools-protocol/README.md +12 -0
- data/node_modules/devtools-protocol/changelog.md +10491 -0
- data/node_modules/devtools-protocol/externs/protocol_externs.js +9734 -0
- data/node_modules/devtools-protocol/json/browser_protocol.json +20641 -0
- data/node_modules/devtools-protocol/json/js_protocol.json +3581 -0
- data/node_modules/devtools-protocol/package.json +18 -0
- data/node_modules/devtools-protocol/pdl/browser_protocol.pdl +9637 -0
- data/node_modules/devtools-protocol/pdl/js_protocol.pdl +1678 -0
- data/node_modules/devtools-protocol/types/protocol-mapping.d.ts +4321 -0
- data/node_modules/devtools-protocol/types/protocol-proxy-api.d.ts +3683 -0
- data/node_modules/devtools-protocol/types/protocol.d.ts +15538 -0
- data/node_modules/end-of-stream/LICENSE +21 -0
- data/node_modules/end-of-stream/README.md +54 -0
- data/node_modules/end-of-stream/index.js +94 -0
- data/node_modules/end-of-stream/package.json +37 -0
- data/node_modules/extract-zip/LICENSE +23 -0
- data/node_modules/extract-zip/cli.js +19 -0
- data/node_modules/extract-zip/index.d.ts +21 -0
- data/node_modules/extract-zip/index.js +173 -0
- data/node_modules/extract-zip/package.json +80 -0
- data/node_modules/extract-zip/readme.md +57 -0
- data/node_modules/fd-slicer/.npmignore +2 -0
- data/node_modules/fd-slicer/.travis.yml +7 -0
- data/node_modules/fd-slicer/CHANGELOG.md +49 -0
- data/node_modules/fd-slicer/LICENSE +21 -0
- data/node_modules/fd-slicer/README.md +199 -0
- data/node_modules/fd-slicer/index.js +296 -0
- data/node_modules/fd-slicer/package.json +36 -0
- data/node_modules/fd-slicer/test/test.js +350 -0
- data/node_modules/find-up/index.d.ts +137 -0
- data/node_modules/find-up/index.js +89 -0
- data/node_modules/find-up/license +9 -0
- data/node_modules/find-up/package.json +53 -0
- data/node_modules/find-up/readme.md +156 -0
- data/node_modules/fs-constants/LICENSE +21 -0
- data/node_modules/fs-constants/README.md +26 -0
- data/node_modules/fs-constants/browser.js +1 -0
- data/node_modules/fs-constants/index.js +1 -0
- data/node_modules/fs-constants/package.json +19 -0
- data/node_modules/fs.realpath/LICENSE +43 -0
- data/node_modules/fs.realpath/README.md +33 -0
- data/node_modules/fs.realpath/index.js +66 -0
- data/node_modules/fs.realpath/old.js +303 -0
- data/node_modules/fs.realpath/package.json +26 -0
- data/node_modules/get-stream/buffer-stream.js +52 -0
- data/node_modules/get-stream/index.d.ts +108 -0
- data/node_modules/get-stream/index.js +60 -0
- data/node_modules/get-stream/license +9 -0
- data/node_modules/get-stream/package.json +50 -0
- data/node_modules/get-stream/readme.md +124 -0
- data/node_modules/glob/LICENSE +21 -0
- data/node_modules/glob/README.md +375 -0
- data/node_modules/glob/changelog.md +67 -0
- data/node_modules/glob/common.js +234 -0
- data/node_modules/glob/glob.js +788 -0
- data/node_modules/glob/package.json +51 -0
- data/node_modules/glob/sync.js +484 -0
- data/node_modules/https-proxy-agent/README.md +137 -0
- data/node_modules/https-proxy-agent/dist/agent.d.ts +30 -0
- data/node_modules/https-proxy-agent/dist/agent.js +180 -0
- data/node_modules/https-proxy-agent/dist/agent.js.map +1 -0
- data/node_modules/https-proxy-agent/dist/index.d.ts +23 -0
- data/node_modules/https-proxy-agent/dist/index.js +14 -0
- data/node_modules/https-proxy-agent/dist/index.js.map +1 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +7 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- data/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -0
- data/node_modules/https-proxy-agent/package.json +56 -0
- data/node_modules/ieee754/LICENSE +11 -0
- data/node_modules/ieee754/README.md +51 -0
- data/node_modules/ieee754/index.d.ts +10 -0
- data/node_modules/ieee754/index.js +85 -0
- data/node_modules/ieee754/package.json +52 -0
- data/node_modules/inflight/LICENSE +15 -0
- data/node_modules/inflight/README.md +37 -0
- data/node_modules/inflight/inflight.js +54 -0
- data/node_modules/inflight/package.json +29 -0
- data/node_modules/inherits/LICENSE +16 -0
- data/node_modules/inherits/README.md +42 -0
- data/node_modules/inherits/inherits.js +9 -0
- data/node_modules/inherits/inherits_browser.js +27 -0
- data/node_modules/inherits/package.json +29 -0
- data/node_modules/locate-path/index.d.ts +83 -0
- data/node_modules/locate-path/index.js +65 -0
- data/node_modules/locate-path/license +9 -0
- data/node_modules/locate-path/package.json +45 -0
- data/node_modules/locate-path/readme.md +122 -0
- data/node_modules/minimatch/LICENSE +15 -0
- data/node_modules/minimatch/README.md +209 -0
- data/node_modules/minimatch/minimatch.js +923 -0
- data/node_modules/minimatch/package.json +30 -0
- data/node_modules/minimist/.travis.yml +8 -0
- data/node_modules/minimist/LICENSE +18 -0
- data/node_modules/minimist/example/parse.js +2 -0
- data/node_modules/minimist/index.js +245 -0
- data/node_modules/minimist/package.json +45 -0
- data/node_modules/minimist/readme.markdown +95 -0
- data/node_modules/minimist/test/all_bool.js +32 -0
- data/node_modules/minimist/test/bool.js +178 -0
- data/node_modules/minimist/test/dash.js +31 -0
- data/node_modules/minimist/test/default_bool.js +35 -0
- data/node_modules/minimist/test/dotted.js +22 -0
- data/node_modules/minimist/test/kv_short.js +16 -0
- data/node_modules/minimist/test/long.js +31 -0
- data/node_modules/minimist/test/num.js +36 -0
- data/node_modules/minimist/test/parse.js +197 -0
- data/node_modules/minimist/test/parse_modified.js +9 -0
- data/node_modules/minimist/test/proto.js +44 -0
- data/node_modules/minimist/test/short.js +67 -0
- data/node_modules/minimist/test/stop_early.js +15 -0
- data/node_modules/minimist/test/unknown.js +102 -0
- data/node_modules/minimist/test/whitespace.js +8 -0
- data/node_modules/mkdirp/LICENSE +21 -0
- data/node_modules/mkdirp/bin/cmd.js +33 -0
- data/node_modules/mkdirp/bin/usage.txt +12 -0
- data/node_modules/mkdirp/index.js +99 -0
- data/node_modules/mkdirp/package.json +34 -0
- data/node_modules/mkdirp/readme.markdown +100 -0
- data/node_modules/ms/index.js +162 -0
- data/node_modules/ms/license.md +21 -0
- data/node_modules/ms/package.json +37 -0
- data/node_modules/ms/readme.md +60 -0
- data/node_modules/node-fetch/CHANGELOG.md +272 -0
- data/node_modules/node-fetch/LICENSE.md +22 -0
- data/node_modules/node-fetch/README.md +590 -0
- data/node_modules/node-fetch/browser.js +25 -0
- data/node_modules/node-fetch/lib/index.es.js +1640 -0
- data/node_modules/node-fetch/lib/index.js +1649 -0
- data/node_modules/node-fetch/lib/index.mjs +1638 -0
- data/node_modules/node-fetch/package.json +66 -0
- data/node_modules/once/LICENSE +15 -0
- data/node_modules/once/README.md +79 -0
- data/node_modules/once/once.js +42 -0
- data/node_modules/once/package.json +33 -0
- data/node_modules/p-limit/index.d.ts +38 -0
- data/node_modules/p-limit/index.js +57 -0
- data/node_modules/p-limit/license +9 -0
- data/node_modules/p-limit/package.json +52 -0
- data/node_modules/p-limit/readme.md +101 -0
- data/node_modules/p-locate/index.d.ts +64 -0
- data/node_modules/p-locate/index.js +52 -0
- data/node_modules/p-locate/license +9 -0
- data/node_modules/p-locate/package.json +53 -0
- data/node_modules/p-locate/readme.md +90 -0
- data/node_modules/p-try/index.d.ts +39 -0
- data/node_modules/p-try/index.js +9 -0
- data/node_modules/p-try/license +9 -0
- data/node_modules/p-try/package.json +42 -0
- data/node_modules/p-try/readme.md +58 -0
- data/node_modules/path-exists/index.d.ts +28 -0
- data/node_modules/path-exists/index.js +23 -0
- data/node_modules/path-exists/license +9 -0
- data/node_modules/path-exists/package.json +39 -0
- data/node_modules/path-exists/readme.md +52 -0
- data/node_modules/path-is-absolute/index.js +20 -0
- data/node_modules/path-is-absolute/license +21 -0
- data/node_modules/path-is-absolute/package.json +43 -0
- data/node_modules/path-is-absolute/readme.md +59 -0
- data/node_modules/pend/LICENSE +23 -0
- data/node_modules/pend/README.md +41 -0
- data/node_modules/pend/index.js +55 -0
- data/node_modules/pend/package.json +18 -0
- data/node_modules/pend/test.js +137 -0
- data/node_modules/pkg-dir/index.d.ts +44 -0
- data/node_modules/pkg-dir/index.js +17 -0
- data/node_modules/pkg-dir/license +9 -0
- data/node_modules/pkg-dir/package.json +56 -0
- data/node_modules/pkg-dir/readme.md +66 -0
- data/node_modules/progress/CHANGELOG.md +115 -0
- data/node_modules/progress/LICENSE +22 -0
- data/node_modules/progress/Makefile +8 -0
- data/node_modules/progress/Readme.md +146 -0
- data/node_modules/progress/index.js +1 -0
- data/node_modules/progress/lib/node-progress.js +235 -0
- data/node_modules/progress/package.json +26 -0
- data/node_modules/proxy-from-env/.eslintrc +29 -0
- data/node_modules/proxy-from-env/.travis.yml +10 -0
- data/node_modules/proxy-from-env/LICENSE +20 -0
- data/node_modules/proxy-from-env/README.md +131 -0
- data/node_modules/proxy-from-env/index.js +108 -0
- data/node_modules/proxy-from-env/package.json +34 -0
- data/node_modules/proxy-from-env/test.js +483 -0
- data/node_modules/pump/.travis.yml +5 -0
- data/node_modules/pump/LICENSE +21 -0
- data/node_modules/pump/README.md +65 -0
- data/node_modules/pump/index.js +82 -0
- data/node_modules/pump/package.json +24 -0
- data/node_modules/pump/test-browser.js +66 -0
- data/node_modules/pump/test-node.js +53 -0
- data/node_modules/puppeteer-core/CHANGELOG.md +226 -0
- data/node_modules/puppeteer-core/LICENSE +202 -0
- data/node_modules/puppeteer-core/README.md +483 -0
- data/node_modules/puppeteer-core/cjs-entry-core.js +29 -0
- data/node_modules/puppeteer-core/cjs-entry.js +29 -0
- data/node_modules/puppeteer-core/install.js +89 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts +111 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js +81 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/api-docs-entry.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts +176 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js +361 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Accessibility.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js +85 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/AriaQueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts +438 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js +528 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Browser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts +54 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js +98 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserConnector.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js +35 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts +130 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js +281 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConnectionTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts +73 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js +65 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ConsoleMessage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts +189 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js +329 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Coverage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts +173 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js +655 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DOMWorld.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts +53 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js +82 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Debug.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts +41 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js +951 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/DeviceDescriptors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts +75 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js +98 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Dialog.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js +38 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EmulationManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts +42 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js +49 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Errors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EvalTypes.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts +93 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js +117 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/EventEmitter.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts +82 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js +87 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Events.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts +194 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js +322 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/ExecutionContext.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts +59 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js +72 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FileChooser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts +733 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js +965 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/FrameManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts +341 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js +547 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPRequest.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts +126 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js +155 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/HTTPResponse.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts +360 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js +545 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Input.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts +469 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js +803 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/JSHandle.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts +66 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js +149 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js +34 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkConditions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts +97 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js +341 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/NetworkManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts +157 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js +35 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PDFOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts +2011 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js +2427 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Product.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts +160 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js +162 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts +52 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js +3 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/PuppeteerViewport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts +65 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js +166 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/QueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js +77 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/SecurityDetails.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js +145 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Target.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js +48 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/TimeoutSettings.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts +47 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js +104 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Tracing.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js +407 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/USKeyboardLayout.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js +113 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/WebWorker.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js +29 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/assert.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js +44 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/fetch.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts +85 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js +328 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/common/helper.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js +20 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/environment.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js +45 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js +27 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/initialize-web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts +134 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js +502 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserFetcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js +225 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/BrowserRunner.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts +131 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/LaunchOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js +574 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Launcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js +42 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts +30 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js +65 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/PipeTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts +154 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js +189 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js +160 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node/install.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js +25 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node-puppeteer-core.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js +24 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js +23 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/revisions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js +24 -0
- data/node_modules/puppeteer-core/lib/cjs/puppeteer/web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js +57 -0
- data/node_modules/puppeteer-core/lib/cjs/vendor/mitt/src/index.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts +111 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js +81 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/api-docs-entry.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts +176 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js +357 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Accessibility.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js +82 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/AriaQueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts +438 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js +523 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Browser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts +54 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js +75 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserConnector.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts +26 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js +31 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/BrowserWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts +130 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js +276 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Connection.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConnectionTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts +73 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ConsoleMessage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts +189 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js +323 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Coverage.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts +173 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js +650 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DOMWorld.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts +53 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js +78 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Debug.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts +41 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js +948 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/DeviceDescriptors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts +75 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js +94 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Dialog.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts +25 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js +34 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EmulationManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts +42 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js +44 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Errors.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EvalTypes.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts +93 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js +110 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/EventEmitter.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts +82 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js +84 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Events.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts +194 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js +318 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/ExecutionContext.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts +59 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js +68 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FileChooser.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts +733 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js +960 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/FrameManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts +341 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js +543 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPRequest.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts +126 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js +151 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/HTTPResponse.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts +360 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js +539 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Input.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts +469 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js +778 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/JSHandle.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts +66 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js +145 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/LifecycleWatcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js +31 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkConditions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts +97 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js +337 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/NetworkManager.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts +157 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js +32 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PDFOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts +2011 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js +2423 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Page.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Product.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts +160 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js +158 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts +52 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js +2 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/PuppeteerViewport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts +65 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js +158 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/QueryHandler.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js +73 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/SecurityDetails.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js +141 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Target.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js +44 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/TimeoutSettings.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts +47 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js +100 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/Tracing.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js +404 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/USKeyboardLayout.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts +99 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js +109 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/WebWorker.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js +25 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/assert.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js +21 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/fetch.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts +85 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js +306 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/common/helper.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/environment.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js +38 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js +23 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/initialize-web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts +134 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js +476 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserFetcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts +40 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js +199 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/BrowserRunner.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts +131 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/LaunchOptions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts +17 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js +552 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Launcher.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts +27 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js +35 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/NodeWebSocketTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts +30 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js +61 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/PipeTransport.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts +154 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js +182 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/Puppeteer.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js +152 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node/install.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js +23 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node-puppeteer-core.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/node.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js +20 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/revisions.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts +18 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js +22 -0
- data/node_modules/puppeteer-core/lib/esm/puppeteer/web.js.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts +28 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.d.ts.map +1 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js +54 -0
- data/node_modules/puppeteer-core/lib/esm/vendor/mitt/src/index.js.map +1 -0
- data/node_modules/puppeteer-core/lib/types.d.ts +6911 -0
- data/node_modules/puppeteer-core/package.json +122 -0
- data/node_modules/puppeteer-core/typescript-if-required.js +61 -0
- data/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- data/node_modules/readable-stream/GOVERNANCE.md +136 -0
- data/node_modules/readable-stream/LICENSE +47 -0
- data/node_modules/readable-stream/README.md +106 -0
- data/node_modules/readable-stream/errors-browser.js +127 -0
- data/node_modules/readable-stream/errors.js +116 -0
- data/node_modules/readable-stream/experimentalWarning.js +17 -0
- data/node_modules/readable-stream/lib/_stream_duplex.js +139 -0
- data/node_modules/readable-stream/lib/_stream_passthrough.js +39 -0
- data/node_modules/readable-stream/lib/_stream_readable.js +1124 -0
- data/node_modules/readable-stream/lib/_stream_transform.js +201 -0
- data/node_modules/readable-stream/lib/_stream_writable.js +697 -0
- data/node_modules/readable-stream/lib/internal/streams/async_iterator.js +207 -0
- data/node_modules/readable-stream/lib/internal/streams/buffer_list.js +210 -0
- data/node_modules/readable-stream/lib/internal/streams/destroy.js +105 -0
- data/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +104 -0
- data/node_modules/readable-stream/lib/internal/streams/from-browser.js +3 -0
- data/node_modules/readable-stream/lib/internal/streams/from.js +64 -0
- data/node_modules/readable-stream/lib/internal/streams/pipeline.js +97 -0
- data/node_modules/readable-stream/lib/internal/streams/state.js +27 -0
- data/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- data/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- data/node_modules/readable-stream/package.json +68 -0
- data/node_modules/readable-stream/readable-browser.js +9 -0
- data/node_modules/readable-stream/readable.js +16 -0
- data/node_modules/rimraf/CHANGELOG.md +65 -0
- data/node_modules/rimraf/LICENSE +15 -0
- data/node_modules/rimraf/README.md +101 -0
- data/node_modules/rimraf/bin.js +68 -0
- data/node_modules/rimraf/package.json +32 -0
- data/node_modules/rimraf/rimraf.js +360 -0
- data/node_modules/safe-buffer/LICENSE +21 -0
- data/node_modules/safe-buffer/README.md +584 -0
- data/node_modules/safe-buffer/index.d.ts +187 -0
- data/node_modules/safe-buffer/index.js +65 -0
- data/node_modules/safe-buffer/package.json +51 -0
- data/node_modules/string_decoder/LICENSE +48 -0
- data/node_modules/string_decoder/README.md +47 -0
- data/node_modules/string_decoder/lib/string_decoder.js +296 -0
- data/node_modules/string_decoder/package.json +34 -0
- data/node_modules/tar-fs/.travis.yml +5 -0
- data/node_modules/tar-fs/LICENSE +21 -0
- data/node_modules/tar-fs/README.md +163 -0
- data/node_modules/tar-fs/index.js +348 -0
- data/node_modules/tar-fs/package.json +41 -0
- data/node_modules/tar-fs/test/fixtures/a/hello.txt +1 -0
- data/node_modules/tar-fs/test/fixtures/b/a/test.txt +1 -0
- data/node_modules/tar-fs/test/fixtures/d/file1 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/file2 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/sub-dir/file5 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/sub-files/file3 +0 -0
- data/node_modules/tar-fs/test/fixtures/d/sub-files/file4 +0 -0
- data/node_modules/tar-fs/test/fixtures/e/directory/.ignore +0 -0
- data/node_modules/tar-fs/test/fixtures/e/file +0 -0
- data/node_modules/tar-fs/test/fixtures/invalid.tar +0 -0
- data/node_modules/tar-fs/test/index.js +346 -0
- data/node_modules/tar-stream/LICENSE +21 -0
- data/node_modules/tar-stream/README.md +168 -0
- data/node_modules/tar-stream/extract.js +257 -0
- data/node_modules/tar-stream/headers.js +295 -0
- data/node_modules/tar-stream/index.js +2 -0
- data/node_modules/tar-stream/pack.js +255 -0
- data/node_modules/tar-stream/package.json +58 -0
- data/node_modules/tar-stream/sandbox.js +11 -0
- data/node_modules/through/.travis.yml +5 -0
- data/node_modules/through/LICENSE.APACHE2 +15 -0
- data/node_modules/through/LICENSE.MIT +24 -0
- data/node_modules/through/index.js +108 -0
- data/node_modules/through/package.json +36 -0
- data/node_modules/through/readme.markdown +64 -0
- data/node_modules/through/test/async.js +28 -0
- data/node_modules/through/test/auto-destroy.js +30 -0
- data/node_modules/through/test/buffering.js +71 -0
- data/node_modules/through/test/end.js +45 -0
- data/node_modules/through/test/index.js +133 -0
- data/node_modules/unbzip2-stream/LICENSE +24 -0
- data/node_modules/unbzip2-stream/README.md +59 -0
- data/node_modules/unbzip2-stream/dist/unbzip2-stream.min.js +1 -0
- data/node_modules/unbzip2-stream/index.js +92 -0
- data/node_modules/unbzip2-stream/lib/bit_iterator.js +39 -0
- data/node_modules/unbzip2-stream/lib/bzip2.js +367 -0
- data/node_modules/unbzip2-stream/package.json +51 -0
- data/node_modules/util-deprecate/History.md +16 -0
- data/node_modules/util-deprecate/LICENSE +24 -0
- data/node_modules/util-deprecate/README.md +53 -0
- data/node_modules/util-deprecate/browser.js +67 -0
- data/node_modules/util-deprecate/node.js +6 -0
- data/node_modules/util-deprecate/package.json +27 -0
- data/node_modules/wrappy/LICENSE +15 -0
- data/node_modules/wrappy/README.md +36 -0
- data/node_modules/wrappy/package.json +29 -0
- data/node_modules/wrappy/wrappy.js +33 -0
- data/node_modules/ws/LICENSE +21 -0
- data/node_modules/ws/README.md +496 -0
- data/node_modules/ws/browser.js +8 -0
- data/node_modules/ws/index.js +10 -0
- data/node_modules/ws/lib/buffer-util.js +129 -0
- data/node_modules/ws/lib/constants.js +10 -0
- data/node_modules/ws/lib/event-target.js +184 -0
- data/node_modules/ws/lib/extension.js +223 -0
- data/node_modules/ws/lib/limiter.js +55 -0
- data/node_modules/ws/lib/permessage-deflate.js +517 -0
- data/node_modules/ws/lib/receiver.js +507 -0
- data/node_modules/ws/lib/sender.js +405 -0
- data/node_modules/ws/lib/stream.js +165 -0
- data/node_modules/ws/lib/validation.js +104 -0
- data/node_modules/ws/lib/websocket-server.js +418 -0
- data/node_modules/ws/lib/websocket.js +942 -0
- data/node_modules/ws/package.json +56 -0
- data/node_modules/yauzl/LICENSE +21 -0
- data/node_modules/yauzl/README.md +658 -0
- data/node_modules/yauzl/index.js +796 -0
- data/node_modules/yauzl/package.json +40 -0
- data/package.json +6 -0
- 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
|
+
}
|