pokeedex 0.1.0 → 0.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -5
- data/bin/pokeedex +1 -44
- data/lib/pokeedex/configuration.rb +0 -6
- data/lib/pokeedex/install_playwright.rb +62 -0
- data/lib/pokeedex/pokemon/scrapper/fetchers/base.rb +1 -1
- data/lib/pokeedex/version.rb +1 -1
- data/lib/pokeedex.rb +5 -2
- data/spec/pokeedex/configuration_spec.rb +0 -7
- data/spec/spec_helper.rb +1 -1
- metadata +2 -550
- data/node_modules/.bin/playwright +0 -1
- data/node_modules/.bin/playwright-core +0 -1
- data/node_modules/.yarn-integrity +0 -22
- data/node_modules/@playwright/test/LICENSE +0 -202
- data/node_modules/@playwright/test/NOTICE +0 -5
- data/node_modules/@playwright/test/README.md +0 -169
- data/node_modules/@playwright/test/cli.js +0 -19
- data/node_modules/@playwright/test/index.d.ts +0 -18
- data/node_modules/@playwright/test/index.js +0 -17
- data/node_modules/@playwright/test/index.mjs +0 -18
- data/node_modules/@playwright/test/node_modules/.bin/playwright +0 -1
- data/node_modules/@playwright/test/package.json +0 -35
- data/node_modules/@playwright/test/reporter.d.ts +0 -17
- data/node_modules/@playwright/test/reporter.js +0 -17
- data/node_modules/@playwright/test/reporter.mjs +0 -17
- data/node_modules/@types/node/LICENSE +0 -21
- data/node_modules/@types/node/README.md +0 -15
- data/node_modules/@types/node/assert/strict.d.ts +0 -8
- data/node_modules/@types/node/assert.d.ts +0 -1040
- data/node_modules/@types/node/async_hooks.d.ts +0 -541
- data/node_modules/@types/node/buffer.d.ts +0 -2300
- data/node_modules/@types/node/child_process.d.ts +0 -1544
- data/node_modules/@types/node/cluster.d.ts +0 -578
- data/node_modules/@types/node/console.d.ts +0 -452
- data/node_modules/@types/node/constants.d.ts +0 -19
- data/node_modules/@types/node/crypto.d.ts +0 -4451
- data/node_modules/@types/node/dgram.d.ts +0 -596
- data/node_modules/@types/node/diagnostics_channel.d.ts +0 -554
- data/node_modules/@types/node/dns/promises.d.ts +0 -476
- data/node_modules/@types/node/dns.d.ts +0 -865
- data/node_modules/@types/node/dom-events.d.ts +0 -124
- data/node_modules/@types/node/domain.d.ts +0 -170
- data/node_modules/@types/node/events.d.ts +0 -931
- data/node_modules/@types/node/fs/promises.d.ts +0 -1264
- data/node_modules/@types/node/fs.d.ts +0 -4390
- data/node_modules/@types/node/globals.d.ts +0 -611
- data/node_modules/@types/node/globals.global.d.ts +0 -1
- data/node_modules/@types/node/http.d.ts +0 -1921
- data/node_modules/@types/node/http2.d.ts +0 -2555
- data/node_modules/@types/node/https.d.ts +0 -544
- data/node_modules/@types/node/index.d.ts +0 -90
- data/node_modules/@types/node/inspector.d.ts +0 -3966
- data/node_modules/@types/node/module.d.ts +0 -301
- data/node_modules/@types/node/net.d.ts +0 -995
- data/node_modules/@types/node/os.d.ts +0 -495
- data/node_modules/@types/node/package.json +0 -217
- data/node_modules/@types/node/path.d.ts +0 -200
- data/node_modules/@types/node/perf_hooks.d.ts +0 -941
- data/node_modules/@types/node/process.d.ts +0 -1912
- data/node_modules/@types/node/punycode.d.ts +0 -117
- data/node_modules/@types/node/querystring.d.ts +0 -153
- data/node_modules/@types/node/readline/promises.d.ts +0 -150
- data/node_modules/@types/node/readline.d.ts +0 -540
- data/node_modules/@types/node/repl.d.ts +0 -430
- data/node_modules/@types/node/sea.d.ts +0 -153
- data/node_modules/@types/node/sqlite.d.ts +0 -213
- data/node_modules/@types/node/stream/consumers.d.ts +0 -12
- data/node_modules/@types/node/stream/promises.d.ts +0 -83
- data/node_modules/@types/node/stream/web.d.ts +0 -606
- data/node_modules/@types/node/stream.d.ts +0 -1726
- data/node_modules/@types/node/string_decoder.d.ts +0 -67
- data/node_modules/@types/node/test.d.ts +0 -2098
- data/node_modules/@types/node/timers/promises.d.ts +0 -97
- data/node_modules/@types/node/timers.d.ts +0 -240
- data/node_modules/@types/node/tls.d.ts +0 -1220
- data/node_modules/@types/node/trace_events.d.ts +0 -197
- data/node_modules/@types/node/tty.d.ts +0 -208
- data/node_modules/@types/node/url.d.ts +0 -969
- data/node_modules/@types/node/util.d.ts +0 -2301
- data/node_modules/@types/node/v8.d.ts +0 -808
- data/node_modules/@types/node/vm.d.ts +0 -922
- data/node_modules/@types/node/wasi.d.ts +0 -181
- data/node_modules/@types/node/worker_threads.d.ts +0 -712
- data/node_modules/@types/node/zlib.d.ts +0 -539
- data/node_modules/fsevents/LICENSE +0 -22
- data/node_modules/fsevents/README.md +0 -83
- data/node_modules/fsevents/fsevents.d.ts +0 -46
- data/node_modules/fsevents/fsevents.js +0 -82
- data/node_modules/fsevents/fsevents.node +0 -0
- data/node_modules/fsevents/package.json +0 -62
- data/node_modules/playwright/.eslintrc.js +0 -6
- data/node_modules/playwright/LICENSE +0 -202
- data/node_modules/playwright/NOTICE +0 -5
- data/node_modules/playwright/README.md +0 -169
- data/node_modules/playwright/ThirdPartyNotices.txt +0 -4356
- data/node_modules/playwright/cli.js +0 -19
- data/node_modules/playwright/index.d.ts +0 -17
- data/node_modules/playwright/index.js +0 -17
- data/node_modules/playwright/index.mjs +0 -18
- data/node_modules/playwright/jsx-runtime.js +0 -41
- data/node_modules/playwright/jsx-runtime.mjs +0 -21
- data/node_modules/playwright/lib/common/config.js +0 -256
- data/node_modules/playwright/lib/common/configLoader.js +0 -321
- data/node_modules/playwright/lib/common/esmLoaderHost.js +0 -93
- data/node_modules/playwright/lib/common/expectBundle.js +0 -27
- data/node_modules/playwright/lib/common/expectBundleImpl.js +0 -389
- data/node_modules/playwright/lib/common/fixtures.js +0 -323
- data/node_modules/playwright/lib/common/globals.js +0 -48
- data/node_modules/playwright/lib/common/ipc.js +0 -48
- data/node_modules/playwright/lib/common/poolBuilder.js +0 -79
- data/node_modules/playwright/lib/common/process.js +0 -140
- data/node_modules/playwright/lib/common/suiteUtils.js +0 -133
- data/node_modules/playwright/lib/common/test.js +0 -311
- data/node_modules/playwright/lib/common/testLoader.js +0 -102
- data/node_modules/playwright/lib/common/testType.js +0 -284
- data/node_modules/playwright/lib/fsWatcher.js +0 -69
- data/node_modules/playwright/lib/index.js +0 -888
- data/node_modules/playwright/lib/internalsForTest.js +0 -28
- data/node_modules/playwright/lib/isomorphic/events.js +0 -72
- data/node_modules/playwright/lib/isomorphic/folders.js +0 -25
- data/node_modules/playwright/lib/isomorphic/stringInternPool.js +0 -58
- data/node_modules/playwright/lib/isomorphic/teleReceiver.js +0 -504
- data/node_modules/playwright/lib/isomorphic/teleSuiteUpdater.js +0 -149
- data/node_modules/playwright/lib/isomorphic/testServerConnection.js +0 -210
- data/node_modules/playwright/lib/isomorphic/testServerInterface.js +0 -5
- data/node_modules/playwright/lib/isomorphic/testTree.js +0 -272
- data/node_modules/playwright/lib/loader/loaderMain.js +0 -58
- data/node_modules/playwright/lib/matchers/expect.js +0 -297
- data/node_modules/playwright/lib/matchers/matcherHint.js +0 -50
- data/node_modules/playwright/lib/matchers/matchers.js +0 -449
- data/node_modules/playwright/lib/matchers/toBeTruthy.js +0 -55
- data/node_modules/playwright/lib/matchers/toEqual.js +0 -57
- data/node_modules/playwright/lib/matchers/toMatchSnapshot.js +0 -383
- data/node_modules/playwright/lib/matchers/toMatchText.js +0 -76
- data/node_modules/playwright/lib/plugins/gitCommitInfoPlugin.js +0 -78
- data/node_modules/playwright/lib/plugins/index.js +0 -19
- data/node_modules/playwright/lib/plugins/webServerPlugin.js +0 -187
- data/node_modules/playwright/lib/program.js +0 -346
- data/node_modules/playwright/lib/reporters/base.js +0 -553
- data/node_modules/playwright/lib/reporters/blob.js +0 -133
- data/node_modules/playwright/lib/reporters/dot.js +0 -82
- data/node_modules/playwright/lib/reporters/empty.js +0 -42
- data/node_modules/playwright/lib/reporters/github.js +0 -115
- data/node_modules/playwright/lib/reporters/html.js +0 -623
- data/node_modules/playwright/lib/reporters/internalReporter.js +0 -123
- data/node_modules/playwright/lib/reporters/json.js +0 -243
- data/node_modules/playwright/lib/reporters/junit.js +0 -233
- data/node_modules/playwright/lib/reporters/line.js +0 -108
- data/node_modules/playwright/lib/reporters/list.js +0 -222
- data/node_modules/playwright/lib/reporters/markdown.js +0 -76
- data/node_modules/playwright/lib/reporters/merge.js +0 -477
- data/node_modules/playwright/lib/reporters/multiplexer.js +0 -90
- data/node_modules/playwright/lib/reporters/reporterV2.js +0 -118
- data/node_modules/playwright/lib/reporters/teleEmitter.js +0 -268
- data/node_modules/playwright/lib/reporters/versions/blobV1.js +0 -5
- data/node_modules/playwright/lib/runner/dispatcher.js +0 -532
- data/node_modules/playwright/lib/runner/failureTracker.js +0 -60
- data/node_modules/playwright/lib/runner/loadUtils.js +0 -308
- data/node_modules/playwright/lib/runner/loaderHost.js +0 -85
- data/node_modules/playwright/lib/runner/processHost.js +0 -175
- data/node_modules/playwright/lib/runner/projectUtils.js +0 -203
- data/node_modules/playwright/lib/runner/reporters.js +0 -151
- data/node_modules/playwright/lib/runner/runner.js +0 -179
- data/node_modules/playwright/lib/runner/sigIntWatcher.js +0 -100
- data/node_modules/playwright/lib/runner/taskRunner.js +0 -147
- data/node_modules/playwright/lib/runner/tasks.js +0 -407
- data/node_modules/playwright/lib/runner/testGroups.js +0 -136
- data/node_modules/playwright/lib/runner/testServer.js +0 -605
- data/node_modules/playwright/lib/runner/uiModeReporter.js +0 -31
- data/node_modules/playwright/lib/runner/vcs.js +0 -55
- data/node_modules/playwright/lib/runner/watchMode.js +0 -398
- data/node_modules/playwright/lib/runner/workerHost.js +0 -85
- data/node_modules/playwright/lib/third_party/tsconfig-loader.js +0 -134
- data/node_modules/playwright/lib/transform/babelBundle.js +0 -28
- data/node_modules/playwright/lib/transform/babelBundleImpl.js +0 -2032
- data/node_modules/playwright/lib/transform/compilationCache.js +0 -254
- data/node_modules/playwright/lib/transform/esmLoader.js +0 -117
- data/node_modules/playwright/lib/transform/esmUtils.js +0 -32
- data/node_modules/playwright/lib/transform/portTransport.js +0 -81
- data/node_modules/playwright/lib/transform/transform.js +0 -267
- data/node_modules/playwright/lib/util.js +0 -356
- data/node_modules/playwright/lib/utilsBundle.js +0 -28
- data/node_modules/playwright/lib/utilsBundleImpl.js +0 -102
- data/node_modules/playwright/lib/worker/fixtureRunner.js +0 -279
- data/node_modules/playwright/lib/worker/testInfo.js +0 -397
- data/node_modules/playwright/lib/worker/testTracing.js +0 -314
- data/node_modules/playwright/lib/worker/timeoutManager.js +0 -153
- data/node_modules/playwright/lib/worker/workerMain.js +0 -637
- data/node_modules/playwright/node_modules/.bin/playwright-core +0 -1
- data/node_modules/playwright/package.json +0 -66
- data/node_modules/playwright/test.d.ts +0 -18
- data/node_modules/playwright/test.js +0 -24
- data/node_modules/playwright/test.mjs +0 -33
- data/node_modules/playwright/types/test.d.ts +0 -8444
- data/node_modules/playwright/types/testReporter.d.ts +0 -749
- data/node_modules/playwright-core/LICENSE +0 -202
- data/node_modules/playwright-core/NOTICE +0 -5
- data/node_modules/playwright-core/README.md +0 -3
- data/node_modules/playwright-core/ThirdPartyNotices.txt +0 -1548
- data/node_modules/playwright-core/bin/PrintDeps.exe +0 -0
- data/node_modules/playwright-core/bin/README.md +0 -2
- data/node_modules/playwright-core/bin/install_media_pack.ps1 +0 -5
- data/node_modules/playwright-core/bin/reinstall_chrome_beta_linux.sh +0 -40
- data/node_modules/playwright-core/bin/reinstall_chrome_beta_mac.sh +0 -13
- data/node_modules/playwright-core/bin/reinstall_chrome_beta_win.ps1 +0 -24
- data/node_modules/playwright-core/bin/reinstall_chrome_stable_linux.sh +0 -40
- data/node_modules/playwright-core/bin/reinstall_chrome_stable_mac.sh +0 -12
- data/node_modules/playwright-core/bin/reinstall_chrome_stable_win.ps1 +0 -24
- data/node_modules/playwright-core/bin/reinstall_msedge_beta_linux.sh +0 -40
- data/node_modules/playwright-core/bin/reinstall_msedge_beta_mac.sh +0 -11
- data/node_modules/playwright-core/bin/reinstall_msedge_beta_win.ps1 +0 -23
- data/node_modules/playwright-core/bin/reinstall_msedge_dev_linux.sh +0 -40
- data/node_modules/playwright-core/bin/reinstall_msedge_dev_mac.sh +0 -11
- data/node_modules/playwright-core/bin/reinstall_msedge_dev_win.ps1 +0 -23
- data/node_modules/playwright-core/bin/reinstall_msedge_stable_linux.sh +0 -40
- data/node_modules/playwright-core/bin/reinstall_msedge_stable_mac.sh +0 -11
- data/node_modules/playwright-core/bin/reinstall_msedge_stable_win.ps1 +0 -24
- data/node_modules/playwright-core/browsers.json +0 -53
- data/node_modules/playwright-core/cli.js +0 -18
- data/node_modules/playwright-core/index.d.ts +0 -17
- data/node_modules/playwright-core/index.js +0 -33
- data/node_modules/playwright-core/index.mjs +0 -28
- data/node_modules/playwright-core/lib/androidServerImpl.js +0 -69
- data/node_modules/playwright-core/lib/browserServerImpl.js +0 -92
- data/node_modules/playwright-core/lib/cli/driver.js +0 -95
- data/node_modules/playwright-core/lib/cli/program.js +0 -577
- data/node_modules/playwright-core/lib/cli/programWithTestStub.js +0 -67
- data/node_modules/playwright-core/lib/client/accessibility.js +0 -50
- data/node_modules/playwright-core/lib/client/android.js +0 -473
- data/node_modules/playwright-core/lib/client/api.js +0 -279
- data/node_modules/playwright-core/lib/client/artifact.js +0 -79
- data/node_modules/playwright-core/lib/client/browser.js +0 -145
- data/node_modules/playwright-core/lib/client/browserContext.js +0 -541
- data/node_modules/playwright-core/lib/client/browserType.js +0 -241
- data/node_modules/playwright-core/lib/client/cdpSession.js +0 -53
- data/node_modules/playwright-core/lib/client/channelOwner.js +0 -231
- data/node_modules/playwright-core/lib/client/clientHelper.js +0 -57
- data/node_modules/playwright-core/lib/client/clientInstrumentation.js +0 -50
- data/node_modules/playwright-core/lib/client/clock.js +0 -68
- data/node_modules/playwright-core/lib/client/connection.js +0 -330
- data/node_modules/playwright-core/lib/client/consoleMessage.js +0 -55
- data/node_modules/playwright-core/lib/client/coverage.js +0 -41
- data/node_modules/playwright-core/lib/client/dialog.js +0 -57
- data/node_modules/playwright-core/lib/client/download.js +0 -62
- data/node_modules/playwright-core/lib/client/electron.js +0 -135
- data/node_modules/playwright-core/lib/client/elementHandle.js +0 -321
- data/node_modules/playwright-core/lib/client/errors.js +0 -77
- data/node_modules/playwright-core/lib/client/eventEmitter.js +0 -314
- data/node_modules/playwright-core/lib/client/events.js +0 -94
- data/node_modules/playwright-core/lib/client/fetch.js +0 -396
- data/node_modules/playwright-core/lib/client/fileChooser.js +0 -45
- data/node_modules/playwright-core/lib/client/frame.js +0 -504
- data/node_modules/playwright-core/lib/client/harRouter.js +0 -99
- data/node_modules/playwright-core/lib/client/input.js +0 -111
- data/node_modules/playwright-core/lib/client/jsHandle.js +0 -129
- data/node_modules/playwright-core/lib/client/jsonPipe.js +0 -35
- data/node_modules/playwright-core/lib/client/localUtils.js +0 -35
- data/node_modules/playwright-core/lib/client/locator.js +0 -441
- data/node_modules/playwright-core/lib/client/network.js +0 -604
- data/node_modules/playwright-core/lib/client/page.js +0 -725
- data/node_modules/playwright-core/lib/client/playwright.js +0 -77
- data/node_modules/playwright-core/lib/client/selectors.js +0 -67
- data/node_modules/playwright-core/lib/client/stream.js +0 -54
- data/node_modules/playwright-core/lib/client/tracing.js +0 -138
- data/node_modules/playwright-core/lib/client/types.js +0 -24
- data/node_modules/playwright-core/lib/client/video.js +0 -51
- data/node_modules/playwright-core/lib/client/waiter.js +0 -158
- data/node_modules/playwright-core/lib/client/webError.js +0 -37
- data/node_modules/playwright-core/lib/client/worker.js +0 -71
- data/node_modules/playwright-core/lib/client/writableStream.js +0 -54
- data/node_modules/playwright-core/lib/common/socksProxy.js +0 -569
- data/node_modules/playwright-core/lib/common/timeoutSettings.js +0 -73
- data/node_modules/playwright-core/lib/common/types.js +0 -5
- data/node_modules/playwright-core/lib/generated/clockSource.js +0 -7
- data/node_modules/playwright-core/lib/generated/consoleApiSource.js +0 -7
- data/node_modules/playwright-core/lib/generated/injectedScriptSource.js +0 -7
- data/node_modules/playwright-core/lib/generated/recorderSource.js +0 -7
- data/node_modules/playwright-core/lib/generated/utilityScriptSource.js +0 -7
- data/node_modules/playwright-core/lib/image_tools/colorUtils.js +0 -98
- data/node_modules/playwright-core/lib/image_tools/compare.js +0 -108
- data/node_modules/playwright-core/lib/image_tools/imageChannel.js +0 -70
- data/node_modules/playwright-core/lib/image_tools/stats.js +0 -102
- data/node_modules/playwright-core/lib/inProcessFactory.js +0 -54
- data/node_modules/playwright-core/lib/inprocess.js +0 -20
- data/node_modules/playwright-core/lib/outofprocess.js +0 -67
- data/node_modules/playwright-core/lib/protocol/debug.js +0 -27
- data/node_modules/playwright-core/lib/protocol/serializers.js +0 -173
- data/node_modules/playwright-core/lib/protocol/transport.js +0 -82
- data/node_modules/playwright-core/lib/protocol/validator.js +0 -2694
- data/node_modules/playwright-core/lib/protocol/validatorPrimitives.js +0 -139
- data/node_modules/playwright-core/lib/remote/playwrightConnection.js +0 -274
- data/node_modules/playwright-core/lib/remote/playwrightServer.js +0 -110
- data/node_modules/playwright-core/lib/server/accessibility.js +0 -62
- data/node_modules/playwright-core/lib/server/android/android.js +0 -441
- data/node_modules/playwright-core/lib/server/android/backendAdb.js +0 -172
- data/node_modules/playwright-core/lib/server/artifact.js +0 -104
- data/node_modules/playwright-core/lib/server/bidi/bidiBrowser.js +0 -296
- data/node_modules/playwright-core/lib/server/bidi/bidiConnection.js +0 -206
- data/node_modules/playwright-core/lib/server/bidi/bidiExecutionContext.js +0 -162
- data/node_modules/playwright-core/lib/server/bidi/bidiFirefox.js +0 -110
- data/node_modules/playwright-core/lib/server/bidi/bidiInput.js +0 -174
- data/node_modules/playwright-core/lib/server/bidi/bidiNetworkManager.js +0 -304
- data/node_modules/playwright-core/lib/server/bidi/bidiPage.js +0 -456
- data/node_modules/playwright-core/lib/server/bidi/third_party/bidiDeserializer.js +0 -93
- data/node_modules/playwright-core/lib/server/bidi/third_party/bidiKeyboard.js +0 -238
- data/node_modules/playwright-core/lib/server/bidi/third_party/bidiProtocol.js +0 -139
- data/node_modules/playwright-core/lib/server/bidi/third_party/bidiSerializer.js +0 -144
- data/node_modules/playwright-core/lib/server/browser.js +0 -137
- data/node_modules/playwright-core/lib/server/browserContext.js +0 -684
- data/node_modules/playwright-core/lib/server/browserType.js +0 -307
- data/node_modules/playwright-core/lib/server/chromium/appIcon.png +0 -0
- data/node_modules/playwright-core/lib/server/chromium/chromium.js +0 -362
- data/node_modules/playwright-core/lib/server/chromium/chromiumSwitches.js +0 -44
- data/node_modules/playwright-core/lib/server/chromium/crAccessibility.js +0 -237
- data/node_modules/playwright-core/lib/server/chromium/crBrowser.js +0 -515
- data/node_modules/playwright-core/lib/server/chromium/crConnection.js +0 -228
- data/node_modules/playwright-core/lib/server/chromium/crCoverage.js +0 -246
- data/node_modules/playwright-core/lib/server/chromium/crDevTools.js +0 -104
- data/node_modules/playwright-core/lib/server/chromium/crDragDrop.js +0 -143
- data/node_modules/playwright-core/lib/server/chromium/crExecutionContext.js +0 -156
- data/node_modules/playwright-core/lib/server/chromium/crInput.js +0 -171
- data/node_modules/playwright-core/lib/server/chromium/crNetworkManager.js +0 -767
- data/node_modules/playwright-core/lib/server/chromium/crPage.js +0 -1128
- data/node_modules/playwright-core/lib/server/chromium/crPdf.js +0 -153
- data/node_modules/playwright-core/lib/server/chromium/crProtocolHelper.js +0 -133
- data/node_modules/playwright-core/lib/server/chromium/crServiceWorker.js +0 -112
- data/node_modules/playwright-core/lib/server/chromium/defaultFontFamilies.js +0 -145
- data/node_modules/playwright-core/lib/server/chromium/videoRecorder.js +0 -155
- data/node_modules/playwright-core/lib/server/clock.js +0 -125
- data/node_modules/playwright-core/lib/server/codegen/csharp.js +0 -299
- data/node_modules/playwright-core/lib/server/codegen/java.js +0 -235
- data/node_modules/playwright-core/lib/server/codegen/javascript.js +0 -223
- data/node_modules/playwright-core/lib/server/codegen/jsonl.js +0 -47
- data/node_modules/playwright-core/lib/server/codegen/language.js +0 -76
- data/node_modules/playwright-core/lib/server/codegen/languages.js +0 -30
- data/node_modules/playwright-core/lib/server/codegen/python.js +0 -265
- data/node_modules/playwright-core/lib/server/codegen/types.js +0 -5
- data/node_modules/playwright-core/lib/server/console.js +0 -57
- data/node_modules/playwright-core/lib/server/cookieStore.js +0 -112
- data/node_modules/playwright-core/lib/server/debugController.js +0 -234
- data/node_modules/playwright-core/lib/server/debugger.js +0 -132
- data/node_modules/playwright-core/lib/server/deviceDescriptors.js +0 -26
- data/node_modules/playwright-core/lib/server/deviceDescriptorsSource.json +0 -1669
- data/node_modules/playwright-core/lib/server/dialog.js +0 -70
- data/node_modules/playwright-core/lib/server/dispatchers/androidDispatcher.js +0 -193
- data/node_modules/playwright-core/lib/server/dispatchers/artifactDispatcher.js +0 -118
- data/node_modules/playwright-core/lib/server/dispatchers/browserContextDispatcher.js +0 -351
- data/node_modules/playwright-core/lib/server/dispatchers/browserDispatcher.js +0 -170
- data/node_modules/playwright-core/lib/server/dispatchers/browserTypeDispatcher.js +0 -55
- data/node_modules/playwright-core/lib/server/dispatchers/cdpSessionDispatcher.js +0 -48
- data/node_modules/playwright-core/lib/server/dispatchers/debugControllerDispatcher.js +0 -103
- data/node_modules/playwright-core/lib/server/dispatchers/dialogDispatcher.js +0 -44
- data/node_modules/playwright-core/lib/server/dispatchers/dispatcher.js +0 -395
- data/node_modules/playwright-core/lib/server/dispatchers/electronDispatcher.js +0 -93
- data/node_modules/playwright-core/lib/server/dispatchers/elementHandlerDispatcher.js +0 -228
- data/node_modules/playwright-core/lib/server/dispatchers/frameDispatcher.js +0 -286
- data/node_modules/playwright-core/lib/server/dispatchers/jsHandleDispatcher.js +0 -102
- data/node_modules/playwright-core/lib/server/dispatchers/jsonPipeDispatcher.js +0 -59
- data/node_modules/playwright-core/lib/server/dispatchers/localUtilsDispatcher.js +0 -413
- data/node_modules/playwright-core/lib/server/dispatchers/networkDispatchers.js +0 -221
- data/node_modules/playwright-core/lib/server/dispatchers/pageDispatcher.js +0 -358
- data/node_modules/playwright-core/lib/server/dispatchers/playwrightDispatcher.js +0 -106
- data/node_modules/playwright-core/lib/server/dispatchers/selectorsDispatcher.js +0 -36
- data/node_modules/playwright-core/lib/server/dispatchers/streamDispatcher.js +0 -62
- data/node_modules/playwright-core/lib/server/dispatchers/tracingDispatcher.js +0 -54
- data/node_modules/playwright-core/lib/server/dispatchers/writableStreamDispatcher.js +0 -58
- data/node_modules/playwright-core/lib/server/dom.js +0 -845
- data/node_modules/playwright-core/lib/server/download.js +0 -53
- data/node_modules/playwright-core/lib/server/electron/electron.js +0 -296
- data/node_modules/playwright-core/lib/server/electron/loader.js +0 -57
- data/node_modules/playwright-core/lib/server/errors.js +0 -68
- data/node_modules/playwright-core/lib/server/fetch.js +0 -660
- data/node_modules/playwright-core/lib/server/fileChooser.js +0 -42
- data/node_modules/playwright-core/lib/server/fileUploadUtils.js +0 -75
- data/node_modules/playwright-core/lib/server/firefox/ffAccessibility.js +0 -216
- data/node_modules/playwright-core/lib/server/firefox/ffBrowser.js +0 -458
- data/node_modules/playwright-core/lib/server/firefox/ffConnection.js +0 -168
- data/node_modules/playwright-core/lib/server/firefox/ffExecutionContext.js +0 -138
- data/node_modules/playwright-core/lib/server/firefox/ffInput.js +0 -150
- data/node_modules/playwright-core/lib/server/firefox/ffNetworkManager.js +0 -233
- data/node_modules/playwright-core/lib/server/firefox/ffPage.js +0 -556
- data/node_modules/playwright-core/lib/server/firefox/firefox.js +0 -110
- data/node_modules/playwright-core/lib/server/formData.js +0 -75
- data/node_modules/playwright-core/lib/server/frameSelectors.js +0 -171
- data/node_modules/playwright-core/lib/server/frames.js +0 -1654
- data/node_modules/playwright-core/lib/server/har/harRecorder.js +0 -139
- data/node_modules/playwright-core/lib/server/har/harTracer.js +0 -531
- data/node_modules/playwright-core/lib/server/helper.js +0 -103
- data/node_modules/playwright-core/lib/server/index.js +0 -114
- data/node_modules/playwright-core/lib/server/input.js +0 -311
- data/node_modules/playwright-core/lib/server/instrumentation.js +0 -70
- data/node_modules/playwright-core/lib/server/isomorphic/utilityScriptSerializers.js +0 -226
- data/node_modules/playwright-core/lib/server/javascript.js +0 -306
- data/node_modules/playwright-core/lib/server/launchApp.js +0 -91
- data/node_modules/playwright-core/lib/server/macEditingCommands.js +0 -139
- data/node_modules/playwright-core/lib/server/network.js +0 -617
- data/node_modules/playwright-core/lib/server/page.js +0 -825
- data/node_modules/playwright-core/lib/server/pipeTransport.js +0 -85
- data/node_modules/playwright-core/lib/server/playwright.js +0 -85
- data/node_modules/playwright-core/lib/server/progress.js +0 -102
- data/node_modules/playwright-core/lib/server/protocolError.js +0 -49
- data/node_modules/playwright-core/lib/server/recorder/contextRecorder.js +0 -316
- data/node_modules/playwright-core/lib/server/recorder/recorderActions.js +0 -5
- data/node_modules/playwright-core/lib/server/recorder/recorderApp.js +0 -190
- data/node_modules/playwright-core/lib/server/recorder/recorderCollection.js +0 -127
- data/node_modules/playwright-core/lib/server/recorder/recorderRunner.js +0 -177
- data/node_modules/playwright-core/lib/server/recorder/recorderUtils.js +0 -71
- data/node_modules/playwright-core/lib/server/recorder/throttledFile.js +0 -46
- data/node_modules/playwright-core/lib/server/recorder.js +0 -324
- data/node_modules/playwright-core/lib/server/registry/browserFetcher.js +0 -168
- data/node_modules/playwright-core/lib/server/registry/dependencies.js +0 -322
- data/node_modules/playwright-core/lib/server/registry/index.js +0 -924
- data/node_modules/playwright-core/lib/server/registry/nativeDeps.js +0 -490
- data/node_modules/playwright-core/lib/server/registry/oopDownloadBrowserMain.js +0 -138
- data/node_modules/playwright-core/lib/server/screenshotter.js +0 -348
- data/node_modules/playwright-core/lib/server/selectors.js +0 -73
- data/node_modules/playwright-core/lib/server/socksClientCertificatesInterceptor.js +0 -328
- data/node_modules/playwright-core/lib/server/socksInterceptor.js +0 -100
- data/node_modules/playwright-core/lib/server/trace/recorder/snapshotter.js +0 -171
- data/node_modules/playwright-core/lib/server/trace/recorder/snapshotterInjected.js +0 -493
- data/node_modules/playwright-core/lib/server/trace/recorder/tracing.js +0 -486
- data/node_modules/playwright-core/lib/server/trace/test/inMemorySnapshotter.js +0 -93
- data/node_modules/playwright-core/lib/server/trace/viewer/traceViewer.js +0 -216
- data/node_modules/playwright-core/lib/server/transport.js +0 -191
- data/node_modules/playwright-core/lib/server/types.js +0 -24
- data/node_modules/playwright-core/lib/server/usKeyboardLayout.js +0 -555
- data/node_modules/playwright-core/lib/server/webkit/webkit.js +0 -87
- data/node_modules/playwright-core/lib/server/webkit/wkAccessibility.js +0 -194
- data/node_modules/playwright-core/lib/server/webkit/wkBrowser.js +0 -328
- data/node_modules/playwright-core/lib/server/webkit/wkConnection.js +0 -173
- data/node_modules/playwright-core/lib/server/webkit/wkExecutionContext.js +0 -146
- data/node_modules/playwright-core/lib/server/webkit/wkInput.js +0 -169
- data/node_modules/playwright-core/lib/server/webkit/wkInterceptableRequest.js +0 -162
- data/node_modules/playwright-core/lib/server/webkit/wkPage.js +0 -1216
- data/node_modules/playwright-core/lib/server/webkit/wkProvisionalPage.js +0 -94
- data/node_modules/playwright-core/lib/server/webkit/wkWorkers.js +0 -104
- data/node_modules/playwright-core/lib/third_party/diff_match_patch.js +0 -2222
- data/node_modules/playwright-core/lib/third_party/pixelmatch.js +0 -255
- data/node_modules/playwright-core/lib/utils/ascii.js +0 -31
- data/node_modules/playwright-core/lib/utils/comparators.js +0 -171
- data/node_modules/playwright-core/lib/utils/crypto.js +0 -174
- data/node_modules/playwright-core/lib/utils/debug.js +0 -46
- data/node_modules/playwright-core/lib/utils/debugLogger.js +0 -91
- data/node_modules/playwright-core/lib/utils/env.js +0 -49
- data/node_modules/playwright-core/lib/utils/eventsHelper.js +0 -38
- data/node_modules/playwright-core/lib/utils/expectUtils.js +0 -33
- data/node_modules/playwright-core/lib/utils/fileUtils.js +0 -205
- data/node_modules/playwright-core/lib/utils/happy-eyeballs.js +0 -181
- data/node_modules/playwright-core/lib/utils/headers.js +0 -52
- data/node_modules/playwright-core/lib/utils/hostPlatform.js +0 -133
- data/node_modules/playwright-core/lib/utils/httpServer.js +0 -236
- data/node_modules/playwright-core/lib/utils/index.js +0 -368
- data/node_modules/playwright-core/lib/utils/isomorphic/cssParser.js +0 -250
- data/node_modules/playwright-core/lib/utils/isomorphic/cssTokenizer.js +0 -979
- data/node_modules/playwright-core/lib/utils/isomorphic/locatorGenerators.js +0 -651
- data/node_modules/playwright-core/lib/utils/isomorphic/locatorParser.js +0 -179
- data/node_modules/playwright-core/lib/utils/isomorphic/locatorUtils.js +0 -62
- data/node_modules/playwright-core/lib/utils/isomorphic/mimeType.js +0 -29
- data/node_modules/playwright-core/lib/utils/isomorphic/selectorParser.js +0 -397
- data/node_modules/playwright-core/lib/utils/isomorphic/stringUtils.js +0 -139
- data/node_modules/playwright-core/lib/utils/isomorphic/traceUtils.js +0 -39
- data/node_modules/playwright-core/lib/utils/isomorphic/urlMatch.js +0 -120
- data/node_modules/playwright-core/lib/utils/linuxUtils.js +0 -78
- data/node_modules/playwright-core/lib/utils/manualPromise.js +0 -109
- data/node_modules/playwright-core/lib/utils/multimap.js +0 -75
- data/node_modules/playwright-core/lib/utils/network.js +0 -160
- data/node_modules/playwright-core/lib/utils/processLauncher.js +0 -248
- data/node_modules/playwright-core/lib/utils/profiler.js +0 -53
- data/node_modules/playwright-core/lib/utils/rtti.js +0 -44
- data/node_modules/playwright-core/lib/utils/semaphore.js +0 -51
- data/node_modules/playwright-core/lib/utils/spawnAsync.js +0 -45
- data/node_modules/playwright-core/lib/utils/stackTrace.js +0 -121
- data/node_modules/playwright-core/lib/utils/task.js +0 -58
- data/node_modules/playwright-core/lib/utils/time.js +0 -37
- data/node_modules/playwright-core/lib/utils/timeoutRunner.js +0 -66
- data/node_modules/playwright-core/lib/utils/traceUtils.js +0 -44
- data/node_modules/playwright-core/lib/utils/userAgent.js +0 -105
- data/node_modules/playwright-core/lib/utils/wsServer.js +0 -127
- data/node_modules/playwright-core/lib/utils/zipFile.js +0 -75
- data/node_modules/playwright-core/lib/utils/zones.js +0 -62
- data/node_modules/playwright-core/lib/utilsBundle.js +0 -82
- data/node_modules/playwright-core/lib/utilsBundleImpl/index.js +0 -53
- data/node_modules/playwright-core/lib/utilsBundleImpl/xdg-open +0 -1066
- data/node_modules/playwright-core/lib/vite/htmlReport/index.html +0 -66
- data/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-aW6Vz3gf.js +0 -24
- data/node_modules/playwright-core/lib/vite/recorder/assets/codeMirrorModule-ez37Vkbh.css +0 -1
- data/node_modules/playwright-core/lib/vite/recorder/assets/codicon-DCmgc-ay.ttf +0 -0
- data/node_modules/playwright-core/lib/vite/recorder/assets/index-B-MT5gKo.css +0 -1
- data/node_modules/playwright-core/lib/vite/recorder/assets/index-DCpXOVIh.js +0 -47
- data/node_modules/playwright-core/lib/vite/recorder/index.html +0 -29
- data/node_modules/playwright-core/lib/vite/recorder/playwright-logo.svg +0 -9
- data/node_modules/playwright-core/lib/vite/traceViewer/assets/codeMirrorModule-eFKCUIu2.js +0 -24
- data/node_modules/playwright-core/lib/vite/traceViewer/assets/testServerConnection-DeE2kSzz.js +0 -1
- data/node_modules/playwright-core/lib/vite/traceViewer/assets/workbench-D0cirtfA.js +0 -72
- data/node_modules/playwright-core/lib/vite/traceViewer/assets/xtermModule-BeNbaIVa.js +0 -9
- data/node_modules/playwright-core/lib/vite/traceViewer/codeMirrorModule.ez37Vkbh.css +0 -1
- data/node_modules/playwright-core/lib/vite/traceViewer/codicon.DCmgc-ay.ttf +0 -0
- data/node_modules/playwright-core/lib/vite/traceViewer/embedded.BkuvsLJp.js +0 -2
- data/node_modules/playwright-core/lib/vite/traceViewer/embedded.html +0 -16
- data/node_modules/playwright-core/lib/vite/traceViewer/embedded.w7WN2u1R.css +0 -1
- data/node_modules/playwright-core/lib/vite/traceViewer/index.C968kAiC.js +0 -2
- data/node_modules/playwright-core/lib/vite/traceViewer/index.CrbWWHbf.css +0 -1
- data/node_modules/playwright-core/lib/vite/traceViewer/index.html +0 -27
- data/node_modules/playwright-core/lib/vite/traceViewer/playwright-logo.svg +0 -9
- data/node_modules/playwright-core/lib/vite/traceViewer/snapshot.html +0 -21
- data/node_modules/playwright-core/lib/vite/traceViewer/sw.bundle.js +0 -3
- data/node_modules/playwright-core/lib/vite/traceViewer/uiMode.BkFnr4V0.js +0 -10
- data/node_modules/playwright-core/lib/vite/traceViewer/uiMode.D3cNFP6u.css +0 -1
- data/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +0 -18
- data/node_modules/playwright-core/lib/vite/traceViewer/workbench.DjbIuxix.css +0 -1
- data/node_modules/playwright-core/lib/vite/traceViewer/xtermModule.DSXBckUd.css +0 -32
- data/node_modules/playwright-core/lib/zipBundle.js +0 -25
- data/node_modules/playwright-core/lib/zipBundleImpl.js +0 -5
- data/node_modules/playwright-core/package.json +0 -44
- data/node_modules/playwright-core/types/protocol.d.ts +0 -21500
- data/node_modules/playwright-core/types/structs.d.ts +0 -45
- data/node_modules/playwright-core/types/types.d.ts +0 -21431
- data/node_modules/undici-types/LICENSE +0 -21
- data/node_modules/undici-types/README.md +0 -6
- data/node_modules/undici-types/agent.d.ts +0 -31
- data/node_modules/undici-types/api.d.ts +0 -43
- data/node_modules/undici-types/balanced-pool.d.ts +0 -29
- data/node_modules/undici-types/cache.d.ts +0 -36
- data/node_modules/undici-types/client.d.ts +0 -108
- data/node_modules/undici-types/connector.d.ts +0 -34
- data/node_modules/undici-types/content-type.d.ts +0 -21
- data/node_modules/undici-types/cookies.d.ts +0 -28
- data/node_modules/undici-types/diagnostics-channel.d.ts +0 -66
- data/node_modules/undici-types/dispatcher.d.ts +0 -255
- data/node_modules/undici-types/env-http-proxy-agent.d.ts +0 -21
- data/node_modules/undici-types/errors.d.ts +0 -149
- data/node_modules/undici-types/eventsource.d.ts +0 -63
- data/node_modules/undici-types/fetch.d.ts +0 -209
- data/node_modules/undici-types/file.d.ts +0 -39
- data/node_modules/undici-types/filereader.d.ts +0 -54
- data/node_modules/undici-types/formdata.d.ts +0 -108
- data/node_modules/undici-types/global-dispatcher.d.ts +0 -9
- data/node_modules/undici-types/global-origin.d.ts +0 -7
- data/node_modules/undici-types/handlers.d.ts +0 -15
- data/node_modules/undici-types/header.d.ts +0 -4
- data/node_modules/undici-types/index.d.ts +0 -71
- data/node_modules/undici-types/interceptors.d.ts +0 -15
- data/node_modules/undici-types/mock-agent.d.ts +0 -50
- data/node_modules/undici-types/mock-client.d.ts +0 -25
- data/node_modules/undici-types/mock-errors.d.ts +0 -12
- data/node_modules/undici-types/mock-interceptor.d.ts +0 -93
- data/node_modules/undici-types/mock-pool.d.ts +0 -25
- data/node_modules/undici-types/package.json +0 -55
- data/node_modules/undici-types/patch.d.ts +0 -71
- data/node_modules/undici-types/pool-stats.d.ts +0 -19
- data/node_modules/undici-types/pool.d.ts +0 -39
- data/node_modules/undici-types/proxy-agent.d.ts +0 -28
- data/node_modules/undici-types/readable.d.ts +0 -60
- data/node_modules/undici-types/retry-agent.d.ts +0 -8
- data/node_modules/undici-types/retry-handler.d.ts +0 -116
- data/node_modules/undici-types/util.d.ts +0 -18
- data/node_modules/undici-types/webidl.d.ts +0 -222
- data/node_modules/undici-types/websocket.d.ts +0 -152
- data/yarn.lock +0 -41
@@ -1,544 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* HTTPS is the HTTP protocol over TLS/SSL. In Node.js this is implemented as a
|
3
|
-
* separate module.
|
4
|
-
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/https.js)
|
5
|
-
*/
|
6
|
-
declare module "https" {
|
7
|
-
import { Duplex } from "node:stream";
|
8
|
-
import * as tls from "node:tls";
|
9
|
-
import * as http from "node:http";
|
10
|
-
import { URL } from "node:url";
|
11
|
-
type ServerOptions<
|
12
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
13
|
-
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
14
|
-
> = tls.SecureContextOptions & tls.TlsOptions & http.ServerOptions<Request, Response>;
|
15
|
-
type RequestOptions =
|
16
|
-
& http.RequestOptions
|
17
|
-
& tls.SecureContextOptions
|
18
|
-
& {
|
19
|
-
checkServerIdentity?: typeof tls.checkServerIdentity | undefined;
|
20
|
-
rejectUnauthorized?: boolean | undefined; // Defaults to true
|
21
|
-
servername?: string | undefined; // SNI TLS Extension
|
22
|
-
};
|
23
|
-
interface AgentOptions extends http.AgentOptions, tls.ConnectionOptions {
|
24
|
-
rejectUnauthorized?: boolean | undefined;
|
25
|
-
maxCachedSessions?: number | undefined;
|
26
|
-
}
|
27
|
-
/**
|
28
|
-
* An `Agent` object for HTTPS similar to `http.Agent`. See {@link request} for more information.
|
29
|
-
* @since v0.4.5
|
30
|
-
*/
|
31
|
-
class Agent extends http.Agent {
|
32
|
-
constructor(options?: AgentOptions);
|
33
|
-
options: AgentOptions;
|
34
|
-
}
|
35
|
-
interface Server<
|
36
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
37
|
-
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
38
|
-
> extends http.Server<Request, Response> {}
|
39
|
-
/**
|
40
|
-
* See `http.Server` for more information.
|
41
|
-
* @since v0.3.4
|
42
|
-
*/
|
43
|
-
class Server<
|
44
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
45
|
-
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
46
|
-
> extends tls.Server {
|
47
|
-
constructor(requestListener?: http.RequestListener<Request, Response>);
|
48
|
-
constructor(
|
49
|
-
options: ServerOptions<Request, Response>,
|
50
|
-
requestListener?: http.RequestListener<Request, Response>,
|
51
|
-
);
|
52
|
-
/**
|
53
|
-
* Closes all connections connected to this server.
|
54
|
-
* @since v18.2.0
|
55
|
-
*/
|
56
|
-
closeAllConnections(): void;
|
57
|
-
/**
|
58
|
-
* Closes all connections connected to this server which are not sending a request or waiting for a response.
|
59
|
-
* @since v18.2.0
|
60
|
-
*/
|
61
|
-
closeIdleConnections(): void;
|
62
|
-
addListener(event: string, listener: (...args: any[]) => void): this;
|
63
|
-
addListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
64
|
-
addListener(
|
65
|
-
event: "newSession",
|
66
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
67
|
-
): this;
|
68
|
-
addListener(
|
69
|
-
event: "OCSPRequest",
|
70
|
-
listener: (
|
71
|
-
certificate: Buffer,
|
72
|
-
issuer: Buffer,
|
73
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
74
|
-
) => void,
|
75
|
-
): this;
|
76
|
-
addListener(
|
77
|
-
event: "resumeSession",
|
78
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
79
|
-
): this;
|
80
|
-
addListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
81
|
-
addListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
82
|
-
addListener(event: "close", listener: () => void): this;
|
83
|
-
addListener(event: "connection", listener: (socket: Duplex) => void): this;
|
84
|
-
addListener(event: "error", listener: (err: Error) => void): this;
|
85
|
-
addListener(event: "listening", listener: () => void): this;
|
86
|
-
addListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
87
|
-
addListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
88
|
-
addListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
89
|
-
addListener(
|
90
|
-
event: "connect",
|
91
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
92
|
-
): this;
|
93
|
-
addListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
94
|
-
addListener(
|
95
|
-
event: "upgrade",
|
96
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
97
|
-
): this;
|
98
|
-
emit(event: string, ...args: any[]): boolean;
|
99
|
-
emit(event: "keylog", line: Buffer, tlsSocket: tls.TLSSocket): boolean;
|
100
|
-
emit(
|
101
|
-
event: "newSession",
|
102
|
-
sessionId: Buffer,
|
103
|
-
sessionData: Buffer,
|
104
|
-
callback: (err: Error, resp: Buffer) => void,
|
105
|
-
): boolean;
|
106
|
-
emit(
|
107
|
-
event: "OCSPRequest",
|
108
|
-
certificate: Buffer,
|
109
|
-
issuer: Buffer,
|
110
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
111
|
-
): boolean;
|
112
|
-
emit(event: "resumeSession", sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void): boolean;
|
113
|
-
emit(event: "secureConnection", tlsSocket: tls.TLSSocket): boolean;
|
114
|
-
emit(event: "tlsClientError", err: Error, tlsSocket: tls.TLSSocket): boolean;
|
115
|
-
emit(event: "close"): boolean;
|
116
|
-
emit(event: "connection", socket: Duplex): boolean;
|
117
|
-
emit(event: "error", err: Error): boolean;
|
118
|
-
emit(event: "listening"): boolean;
|
119
|
-
emit(
|
120
|
-
event: "checkContinue",
|
121
|
-
req: InstanceType<Request>,
|
122
|
-
res: InstanceType<Response>,
|
123
|
-
): boolean;
|
124
|
-
emit(
|
125
|
-
event: "checkExpectation",
|
126
|
-
req: InstanceType<Request>,
|
127
|
-
res: InstanceType<Response>,
|
128
|
-
): boolean;
|
129
|
-
emit(event: "clientError", err: Error, socket: Duplex): boolean;
|
130
|
-
emit(event: "connect", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
131
|
-
emit(
|
132
|
-
event: "request",
|
133
|
-
req: InstanceType<Request>,
|
134
|
-
res: InstanceType<Response>,
|
135
|
-
): boolean;
|
136
|
-
emit(event: "upgrade", req: InstanceType<Request>, socket: Duplex, head: Buffer): boolean;
|
137
|
-
on(event: string, listener: (...args: any[]) => void): this;
|
138
|
-
on(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
139
|
-
on(
|
140
|
-
event: "newSession",
|
141
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
142
|
-
): this;
|
143
|
-
on(
|
144
|
-
event: "OCSPRequest",
|
145
|
-
listener: (
|
146
|
-
certificate: Buffer,
|
147
|
-
issuer: Buffer,
|
148
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
149
|
-
) => void,
|
150
|
-
): this;
|
151
|
-
on(
|
152
|
-
event: "resumeSession",
|
153
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
154
|
-
): this;
|
155
|
-
on(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
156
|
-
on(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
157
|
-
on(event: "close", listener: () => void): this;
|
158
|
-
on(event: "connection", listener: (socket: Duplex) => void): this;
|
159
|
-
on(event: "error", listener: (err: Error) => void): this;
|
160
|
-
on(event: "listening", listener: () => void): this;
|
161
|
-
on(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
162
|
-
on(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
163
|
-
on(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
164
|
-
on(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
165
|
-
on(event: "request", listener: http.RequestListener<Request, Response>): this;
|
166
|
-
on(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
167
|
-
once(event: string, listener: (...args: any[]) => void): this;
|
168
|
-
once(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
169
|
-
once(
|
170
|
-
event: "newSession",
|
171
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
172
|
-
): this;
|
173
|
-
once(
|
174
|
-
event: "OCSPRequest",
|
175
|
-
listener: (
|
176
|
-
certificate: Buffer,
|
177
|
-
issuer: Buffer,
|
178
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
179
|
-
) => void,
|
180
|
-
): this;
|
181
|
-
once(
|
182
|
-
event: "resumeSession",
|
183
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
184
|
-
): this;
|
185
|
-
once(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
186
|
-
once(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
187
|
-
once(event: "close", listener: () => void): this;
|
188
|
-
once(event: "connection", listener: (socket: Duplex) => void): this;
|
189
|
-
once(event: "error", listener: (err: Error) => void): this;
|
190
|
-
once(event: "listening", listener: () => void): this;
|
191
|
-
once(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
192
|
-
once(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
193
|
-
once(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
194
|
-
once(event: "connect", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
195
|
-
once(event: "request", listener: http.RequestListener<Request, Response>): this;
|
196
|
-
once(event: "upgrade", listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void): this;
|
197
|
-
prependListener(event: string, listener: (...args: any[]) => void): this;
|
198
|
-
prependListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
199
|
-
prependListener(
|
200
|
-
event: "newSession",
|
201
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
202
|
-
): this;
|
203
|
-
prependListener(
|
204
|
-
event: "OCSPRequest",
|
205
|
-
listener: (
|
206
|
-
certificate: Buffer,
|
207
|
-
issuer: Buffer,
|
208
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
209
|
-
) => void,
|
210
|
-
): this;
|
211
|
-
prependListener(
|
212
|
-
event: "resumeSession",
|
213
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
214
|
-
): this;
|
215
|
-
prependListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
216
|
-
prependListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
217
|
-
prependListener(event: "close", listener: () => void): this;
|
218
|
-
prependListener(event: "connection", listener: (socket: Duplex) => void): this;
|
219
|
-
prependListener(event: "error", listener: (err: Error) => void): this;
|
220
|
-
prependListener(event: "listening", listener: () => void): this;
|
221
|
-
prependListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
222
|
-
prependListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
223
|
-
prependListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
224
|
-
prependListener(
|
225
|
-
event: "connect",
|
226
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
227
|
-
): this;
|
228
|
-
prependListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
229
|
-
prependListener(
|
230
|
-
event: "upgrade",
|
231
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
232
|
-
): this;
|
233
|
-
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
234
|
-
prependOnceListener(event: "keylog", listener: (line: Buffer, tlsSocket: tls.TLSSocket) => void): this;
|
235
|
-
prependOnceListener(
|
236
|
-
event: "newSession",
|
237
|
-
listener: (sessionId: Buffer, sessionData: Buffer, callback: (err: Error, resp: Buffer) => void) => void,
|
238
|
-
): this;
|
239
|
-
prependOnceListener(
|
240
|
-
event: "OCSPRequest",
|
241
|
-
listener: (
|
242
|
-
certificate: Buffer,
|
243
|
-
issuer: Buffer,
|
244
|
-
callback: (err: Error | null, resp: Buffer) => void,
|
245
|
-
) => void,
|
246
|
-
): this;
|
247
|
-
prependOnceListener(
|
248
|
-
event: "resumeSession",
|
249
|
-
listener: (sessionId: Buffer, callback: (err: Error, sessionData: Buffer) => void) => void,
|
250
|
-
): this;
|
251
|
-
prependOnceListener(event: "secureConnection", listener: (tlsSocket: tls.TLSSocket) => void): this;
|
252
|
-
prependOnceListener(event: "tlsClientError", listener: (err: Error, tlsSocket: tls.TLSSocket) => void): this;
|
253
|
-
prependOnceListener(event: "close", listener: () => void): this;
|
254
|
-
prependOnceListener(event: "connection", listener: (socket: Duplex) => void): this;
|
255
|
-
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
256
|
-
prependOnceListener(event: "listening", listener: () => void): this;
|
257
|
-
prependOnceListener(event: "checkContinue", listener: http.RequestListener<Request, Response>): this;
|
258
|
-
prependOnceListener(event: "checkExpectation", listener: http.RequestListener<Request, Response>): this;
|
259
|
-
prependOnceListener(event: "clientError", listener: (err: Error, socket: Duplex) => void): this;
|
260
|
-
prependOnceListener(
|
261
|
-
event: "connect",
|
262
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
263
|
-
): this;
|
264
|
-
prependOnceListener(event: "request", listener: http.RequestListener<Request, Response>): this;
|
265
|
-
prependOnceListener(
|
266
|
-
event: "upgrade",
|
267
|
-
listener: (req: InstanceType<Request>, socket: Duplex, head: Buffer) => void,
|
268
|
-
): this;
|
269
|
-
}
|
270
|
-
/**
|
271
|
-
* ```js
|
272
|
-
* // curl -k https://localhost:8000/
|
273
|
-
* const https = require('node:https');
|
274
|
-
* const fs = require('node:fs');
|
275
|
-
*
|
276
|
-
* const options = {
|
277
|
-
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
278
|
-
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
279
|
-
* };
|
280
|
-
*
|
281
|
-
* https.createServer(options, (req, res) => {
|
282
|
-
* res.writeHead(200);
|
283
|
-
* res.end('hello world\n');
|
284
|
-
* }).listen(8000);
|
285
|
-
* ```
|
286
|
-
*
|
287
|
-
* Or
|
288
|
-
*
|
289
|
-
* ```js
|
290
|
-
* const https = require('node:https');
|
291
|
-
* const fs = require('node:fs');
|
292
|
-
*
|
293
|
-
* const options = {
|
294
|
-
* pfx: fs.readFileSync('test/fixtures/test_cert.pfx'),
|
295
|
-
* passphrase: 'sample',
|
296
|
-
* };
|
297
|
-
*
|
298
|
-
* https.createServer(options, (req, res) => {
|
299
|
-
* res.writeHead(200);
|
300
|
-
* res.end('hello world\n');
|
301
|
-
* }).listen(8000);
|
302
|
-
* ```
|
303
|
-
* @since v0.3.4
|
304
|
-
* @param options Accepts `options` from `createServer`, `createSecureContext` and `createServer`.
|
305
|
-
* @param requestListener A listener to be added to the `'request'` event.
|
306
|
-
*/
|
307
|
-
function createServer<
|
308
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
309
|
-
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
310
|
-
>(requestListener?: http.RequestListener<Request, Response>): Server<Request, Response>;
|
311
|
-
function createServer<
|
312
|
-
Request extends typeof http.IncomingMessage = typeof http.IncomingMessage,
|
313
|
-
Response extends typeof http.ServerResponse<InstanceType<Request>> = typeof http.ServerResponse,
|
314
|
-
>(
|
315
|
-
options: ServerOptions<Request, Response>,
|
316
|
-
requestListener?: http.RequestListener<Request, Response>,
|
317
|
-
): Server<Request, Response>;
|
318
|
-
/**
|
319
|
-
* Makes a request to a secure web server.
|
320
|
-
*
|
321
|
-
* The following additional `options` from `tls.connect()` are also accepted: `ca`, `cert`, `ciphers`, `clientCertEngine`, `crl`, `dhparam`, `ecdhCurve`, `honorCipherOrder`, `key`, `passphrase`,
|
322
|
-
* `pfx`, `rejectUnauthorized`, `secureOptions`, `secureProtocol`, `servername`, `sessionIdContext`, `highWaterMark`.
|
323
|
-
*
|
324
|
-
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
325
|
-
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
326
|
-
*
|
327
|
-
* `https.request()` returns an instance of the `http.ClientRequest` class. The `ClientRequest` instance is a writable stream. If one needs to
|
328
|
-
* upload a file with a POST request, then write to the `ClientRequest` object.
|
329
|
-
*
|
330
|
-
* ```js
|
331
|
-
* const https = require('node:https');
|
332
|
-
*
|
333
|
-
* const options = {
|
334
|
-
* hostname: 'encrypted.google.com',
|
335
|
-
* port: 443,
|
336
|
-
* path: '/',
|
337
|
-
* method: 'GET',
|
338
|
-
* };
|
339
|
-
*
|
340
|
-
* const req = https.request(options, (res) => {
|
341
|
-
* console.log('statusCode:', res.statusCode);
|
342
|
-
* console.log('headers:', res.headers);
|
343
|
-
*
|
344
|
-
* res.on('data', (d) => {
|
345
|
-
* process.stdout.write(d);
|
346
|
-
* });
|
347
|
-
* });
|
348
|
-
*
|
349
|
-
* req.on('error', (e) => {
|
350
|
-
* console.error(e);
|
351
|
-
* });
|
352
|
-
* req.end();
|
353
|
-
* ```
|
354
|
-
*
|
355
|
-
* Example using options from `tls.connect()`:
|
356
|
-
*
|
357
|
-
* ```js
|
358
|
-
* const options = {
|
359
|
-
* hostname: 'encrypted.google.com',
|
360
|
-
* port: 443,
|
361
|
-
* path: '/',
|
362
|
-
* method: 'GET',
|
363
|
-
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
364
|
-
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
365
|
-
* };
|
366
|
-
* options.agent = new https.Agent(options);
|
367
|
-
*
|
368
|
-
* const req = https.request(options, (res) => {
|
369
|
-
* // ...
|
370
|
-
* });
|
371
|
-
* ```
|
372
|
-
*
|
373
|
-
* Alternatively, opt out of connection pooling by not using an `Agent`.
|
374
|
-
*
|
375
|
-
* ```js
|
376
|
-
* const options = {
|
377
|
-
* hostname: 'encrypted.google.com',
|
378
|
-
* port: 443,
|
379
|
-
* path: '/',
|
380
|
-
* method: 'GET',
|
381
|
-
* key: fs.readFileSync('test/fixtures/keys/agent2-key.pem'),
|
382
|
-
* cert: fs.readFileSync('test/fixtures/keys/agent2-cert.pem'),
|
383
|
-
* agent: false,
|
384
|
-
* };
|
385
|
-
*
|
386
|
-
* const req = https.request(options, (res) => {
|
387
|
-
* // ...
|
388
|
-
* });
|
389
|
-
* ```
|
390
|
-
*
|
391
|
-
* Example using a `URL` as `options`:
|
392
|
-
*
|
393
|
-
* ```js
|
394
|
-
* const options = new URL('https://abc:xyz@example.com');
|
395
|
-
*
|
396
|
-
* const req = https.request(options, (res) => {
|
397
|
-
* // ...
|
398
|
-
* });
|
399
|
-
* ```
|
400
|
-
*
|
401
|
-
* Example pinning on certificate fingerprint, or the public key (similar to`pin-sha256`):
|
402
|
-
*
|
403
|
-
* ```js
|
404
|
-
* const tls = require('node:tls');
|
405
|
-
* const https = require('node:https');
|
406
|
-
* const crypto = require('node:crypto');
|
407
|
-
*
|
408
|
-
* function sha256(s) {
|
409
|
-
* return crypto.createHash('sha256').update(s).digest('base64');
|
410
|
-
* }
|
411
|
-
* const options = {
|
412
|
-
* hostname: 'github.com',
|
413
|
-
* port: 443,
|
414
|
-
* path: '/',
|
415
|
-
* method: 'GET',
|
416
|
-
* checkServerIdentity: function(host, cert) {
|
417
|
-
* // Make sure the certificate is issued to the host we are connected to
|
418
|
-
* const err = tls.checkServerIdentity(host, cert);
|
419
|
-
* if (err) {
|
420
|
-
* return err;
|
421
|
-
* }
|
422
|
-
*
|
423
|
-
* // Pin the public key, similar to HPKP pin-sha256 pinning
|
424
|
-
* const pubkey256 = 'pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=';
|
425
|
-
* if (sha256(cert.pubkey) !== pubkey256) {
|
426
|
-
* const msg = 'Certificate verification error: ' +
|
427
|
-
* `The public key of '${cert.subject.CN}' ` +
|
428
|
-
* 'does not match our pinned fingerprint';
|
429
|
-
* return new Error(msg);
|
430
|
-
* }
|
431
|
-
*
|
432
|
-
* // Pin the exact certificate, rather than the pub key
|
433
|
-
* const cert256 = '25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:' +
|
434
|
-
* 'D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16';
|
435
|
-
* if (cert.fingerprint256 !== cert256) {
|
436
|
-
* const msg = 'Certificate verification error: ' +
|
437
|
-
* `The certificate of '${cert.subject.CN}' ` +
|
438
|
-
* 'does not match our pinned fingerprint';
|
439
|
-
* return new Error(msg);
|
440
|
-
* }
|
441
|
-
*
|
442
|
-
* // This loop is informational only.
|
443
|
-
* // Print the certificate and public key fingerprints of all certs in the
|
444
|
-
* // chain. Its common to pin the public key of the issuer on the public
|
445
|
-
* // internet, while pinning the public key of the service in sensitive
|
446
|
-
* // environments.
|
447
|
-
* do {
|
448
|
-
* console.log('Subject Common Name:', cert.subject.CN);
|
449
|
-
* console.log(' Certificate SHA256 fingerprint:', cert.fingerprint256);
|
450
|
-
*
|
451
|
-
* hash = crypto.createHash('sha256');
|
452
|
-
* console.log(' Public key ping-sha256:', sha256(cert.pubkey));
|
453
|
-
*
|
454
|
-
* lastprint256 = cert.fingerprint256;
|
455
|
-
* cert = cert.issuerCertificate;
|
456
|
-
* } while (cert.fingerprint256 !== lastprint256);
|
457
|
-
*
|
458
|
-
* },
|
459
|
-
* };
|
460
|
-
*
|
461
|
-
* options.agent = new https.Agent(options);
|
462
|
-
* const req = https.request(options, (res) => {
|
463
|
-
* console.log('All OK. Server matched our pinned cert or public key');
|
464
|
-
* console.log('statusCode:', res.statusCode);
|
465
|
-
* // Print the HPKP values
|
466
|
-
* console.log('headers:', res.headers['public-key-pins']);
|
467
|
-
*
|
468
|
-
* res.on('data', (d) => {});
|
469
|
-
* });
|
470
|
-
*
|
471
|
-
* req.on('error', (e) => {
|
472
|
-
* console.error(e.message);
|
473
|
-
* });
|
474
|
-
* req.end();
|
475
|
-
* ```
|
476
|
-
*
|
477
|
-
* Outputs for example:
|
478
|
-
*
|
479
|
-
* ```text
|
480
|
-
* Subject Common Name: github.com
|
481
|
-
* Certificate SHA256 fingerprint: 25:FE:39:32:D9:63:8C:8A:FC:A1:9A:29:87:D8:3E:4C:1D:98:DB:71:E4:1A:48:03:98:EA:22:6A:BD:8B:93:16
|
482
|
-
* Public key ping-sha256: pL1+qb9HTMRZJmuC/bB/ZI9d302BYrrqiVuRyW+DGrU=
|
483
|
-
* Subject Common Name: DigiCert SHA2 Extended Validation Server CA
|
484
|
-
* Certificate SHA256 fingerprint: 40:3E:06:2A:26:53:05:91:13:28:5B:AF:80:A0:D4:AE:42:2C:84:8C:9F:78:FA:D0:1F:C9:4B:C5:B8:7F:EF:1A
|
485
|
-
* Public key ping-sha256: RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=
|
486
|
-
* Subject Common Name: DigiCert High Assurance EV Root CA
|
487
|
-
* Certificate SHA256 fingerprint: 74:31:E5:F4:C3:C1:CE:46:90:77:4F:0B:61:E0:54:40:88:3B:A9:A0:1E:D0:0B:A6:AB:D7:80:6E:D3:B1:18:CF
|
488
|
-
* Public key ping-sha256: WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18=
|
489
|
-
* All OK. Server matched our pinned cert or public key
|
490
|
-
* statusCode: 200
|
491
|
-
* headers: max-age=0; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho=";
|
492
|
-
* pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4=";
|
493
|
-
* pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
|
494
|
-
* ```
|
495
|
-
* @since v0.3.6
|
496
|
-
* @param options Accepts all `options` from `request`, with some differences in default values:
|
497
|
-
*/
|
498
|
-
function request(
|
499
|
-
options: RequestOptions | string | URL,
|
500
|
-
callback?: (res: http.IncomingMessage) => void,
|
501
|
-
): http.ClientRequest;
|
502
|
-
function request(
|
503
|
-
url: string | URL,
|
504
|
-
options: RequestOptions,
|
505
|
-
callback?: (res: http.IncomingMessage) => void,
|
506
|
-
): http.ClientRequest;
|
507
|
-
/**
|
508
|
-
* Like `http.get()` but for HTTPS.
|
509
|
-
*
|
510
|
-
* `options` can be an object, a string, or a `URL` object. If `options` is a
|
511
|
-
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
512
|
-
*
|
513
|
-
* ```js
|
514
|
-
* const https = require('node:https');
|
515
|
-
*
|
516
|
-
* https.get('https://encrypted.google.com/', (res) => {
|
517
|
-
* console.log('statusCode:', res.statusCode);
|
518
|
-
* console.log('headers:', res.headers);
|
519
|
-
*
|
520
|
-
* res.on('data', (d) => {
|
521
|
-
* process.stdout.write(d);
|
522
|
-
* });
|
523
|
-
*
|
524
|
-
* }).on('error', (e) => {
|
525
|
-
* console.error(e);
|
526
|
-
* });
|
527
|
-
* ```
|
528
|
-
* @since v0.3.6
|
529
|
-
* @param options Accepts the same `options` as {@link request}, with the `method` always set to `GET`.
|
530
|
-
*/
|
531
|
-
function get(
|
532
|
-
options: RequestOptions | string | URL,
|
533
|
-
callback?: (res: http.IncomingMessage) => void,
|
534
|
-
): http.ClientRequest;
|
535
|
-
function get(
|
536
|
-
url: string | URL,
|
537
|
-
options: RequestOptions,
|
538
|
-
callback?: (res: http.IncomingMessage) => void,
|
539
|
-
): http.ClientRequest;
|
540
|
-
let globalAgent: Agent;
|
541
|
-
}
|
542
|
-
declare module "node:https" {
|
543
|
-
export * from "https";
|
544
|
-
}
|
@@ -1,90 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* License for programmatically and manually incorporated
|
3
|
-
* documentation aka. `JSDoc` from https://github.com/nodejs/node/tree/master/doc
|
4
|
-
*
|
5
|
-
* Copyright Node.js contributors. All rights reserved.
|
6
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
-
* of this software and associated documentation files (the "Software"), to
|
8
|
-
* deal in the Software without restriction, including without limitation the
|
9
|
-
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
|
10
|
-
* sell copies of the Software, and to permit persons to whom the Software is
|
11
|
-
* furnished to do so, subject to the following conditions:
|
12
|
-
*
|
13
|
-
* The above copyright notice and this permission notice shall be included in
|
14
|
-
* all copies or substantial portions of the Software.
|
15
|
-
*
|
16
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
21
|
-
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
22
|
-
* IN THE SOFTWARE.
|
23
|
-
*/
|
24
|
-
|
25
|
-
// NOTE: These definitions support NodeJS and TypeScript 4.9+.
|
26
|
-
|
27
|
-
// Reference required types from the default lib:
|
28
|
-
/// <reference lib="es2020" />
|
29
|
-
/// <reference lib="esnext.asynciterable" />
|
30
|
-
/// <reference lib="esnext.intl" />
|
31
|
-
/// <reference lib="esnext.bigint" />
|
32
|
-
|
33
|
-
// Base definitions for all NodeJS modules that are not specific to any version of TypeScript:
|
34
|
-
/// <reference path="assert.d.ts" />
|
35
|
-
/// <reference path="assert/strict.d.ts" />
|
36
|
-
/// <reference path="globals.d.ts" />
|
37
|
-
/// <reference path="async_hooks.d.ts" />
|
38
|
-
/// <reference path="buffer.d.ts" />
|
39
|
-
/// <reference path="child_process.d.ts" />
|
40
|
-
/// <reference path="cluster.d.ts" />
|
41
|
-
/// <reference path="console.d.ts" />
|
42
|
-
/// <reference path="constants.d.ts" />
|
43
|
-
/// <reference path="crypto.d.ts" />
|
44
|
-
/// <reference path="dgram.d.ts" />
|
45
|
-
/// <reference path="diagnostics_channel.d.ts" />
|
46
|
-
/// <reference path="dns.d.ts" />
|
47
|
-
/// <reference path="dns/promises.d.ts" />
|
48
|
-
/// <reference path="dns/promises.d.ts" />
|
49
|
-
/// <reference path="domain.d.ts" />
|
50
|
-
/// <reference path="dom-events.d.ts" />
|
51
|
-
/// <reference path="events.d.ts" />
|
52
|
-
/// <reference path="fs.d.ts" />
|
53
|
-
/// <reference path="fs/promises.d.ts" />
|
54
|
-
/// <reference path="http.d.ts" />
|
55
|
-
/// <reference path="http2.d.ts" />
|
56
|
-
/// <reference path="https.d.ts" />
|
57
|
-
/// <reference path="inspector.d.ts" />
|
58
|
-
/// <reference path="module.d.ts" />
|
59
|
-
/// <reference path="net.d.ts" />
|
60
|
-
/// <reference path="os.d.ts" />
|
61
|
-
/// <reference path="path.d.ts" />
|
62
|
-
/// <reference path="perf_hooks.d.ts" />
|
63
|
-
/// <reference path="process.d.ts" />
|
64
|
-
/// <reference path="punycode.d.ts" />
|
65
|
-
/// <reference path="querystring.d.ts" />
|
66
|
-
/// <reference path="readline.d.ts" />
|
67
|
-
/// <reference path="readline/promises.d.ts" />
|
68
|
-
/// <reference path="repl.d.ts" />
|
69
|
-
/// <reference path="sea.d.ts" />
|
70
|
-
/// <reference path="sqlite.d.ts" />
|
71
|
-
/// <reference path="stream.d.ts" />
|
72
|
-
/// <reference path="stream/promises.d.ts" />
|
73
|
-
/// <reference path="stream/consumers.d.ts" />
|
74
|
-
/// <reference path="stream/web.d.ts" />
|
75
|
-
/// <reference path="string_decoder.d.ts" />
|
76
|
-
/// <reference path="test.d.ts" />
|
77
|
-
/// <reference path="timers.d.ts" />
|
78
|
-
/// <reference path="timers/promises.d.ts" />
|
79
|
-
/// <reference path="tls.d.ts" />
|
80
|
-
/// <reference path="trace_events.d.ts" />
|
81
|
-
/// <reference path="tty.d.ts" />
|
82
|
-
/// <reference path="url.d.ts" />
|
83
|
-
/// <reference path="util.d.ts" />
|
84
|
-
/// <reference path="v8.d.ts" />
|
85
|
-
/// <reference path="vm.d.ts" />
|
86
|
-
/// <reference path="wasi.d.ts" />
|
87
|
-
/// <reference path="worker_threads.d.ts" />
|
88
|
-
/// <reference path="zlib.d.ts" />
|
89
|
-
|
90
|
-
/// <reference path="globals.global.d.ts" />
|