cdk-ecr-deployment 2.5.30 → 2.5.31
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.
- package/.gitattributes +1 -1
- package/.jsii +129 -27
- package/.jsii.tabl.json +1 -1
- package/.projenrc.ts +3 -1
- package/API.md +2 -0
- package/lambda/install.js +7 -6
- package/lib/index.d.ts +10 -0
- package/lib/index.js +6 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/assert.d.ts +48 -24
- package/node_modules/@types/cacheable-request/node_modules/@types/node/async_hooks.d.ts +15 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/buffer.d.ts +43 -35
- package/node_modules/@types/cacheable-request/node_modules/@types/node/child_process.d.ts +267 -122
- package/node_modules/@types/cacheable-request/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/console.d.ts +17 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/crypto.d.ts +755 -269
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dgram.d.ts +86 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns/promises.d.ts +28 -25
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dns.d.ts +203 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/events.d.ts +127 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs/promises.d.ts +115 -73
- package/node_modules/@types/cacheable-request/node_modules/@types/node/fs.d.ts +560 -315
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.d.ts +96 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http.d.ts +359 -195
- package/node_modules/@types/cacheable-request/node_modules/@types/node/http2.d.ts +629 -377
- package/node_modules/@types/cacheable-request/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/cacheable-request/node_modules/@types/node/index.d.ts +0 -46
- package/node_modules/@types/cacheable-request/node_modules/@types/node/inspector.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/module.d.ts +195 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/net.d.ts +154 -93
- package/node_modules/@types/cacheable-request/node_modules/@types/node/os.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/package.json +88 -95
- package/node_modules/@types/cacheable-request/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/process.d.ts +166 -128
- package/node_modules/@types/cacheable-request/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/cacheable-request/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/stream.d.ts +498 -218
- package/node_modules/@types/cacheable-request/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/test.d.ts +398 -170
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/timers.d.ts +34 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tls.d.ts +162 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/console.d.ts +17 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/events.d.ts +79 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http.d.ts +359 -195
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/module.d.ts +195 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/net.d.ts +154 -93
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/os.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/process.d.ts +166 -128
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/test.d.ts +398 -170
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/url.d.ts +40 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/util.d.ts +263 -129
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/wasi.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
- package/node_modules/@types/cacheable-request/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/cacheable-request/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/cacheable-request/node_modules/@types/node/url.d.ts +40 -14
- package/node_modules/@types/cacheable-request/node_modules/@types/node/util.d.ts +263 -129
- package/node_modules/@types/cacheable-request/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/cacheable-request/node_modules/@types/node/vm.d.ts +52 -45
- package/node_modules/@types/cacheable-request/node_modules/@types/node/wasi.d.ts +3 -3
- package/node_modules/@types/cacheable-request/node_modules/@types/node/worker_threads.d.ts +83 -85
- package/node_modules/@types/cacheable-request/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/@types/http-cache-semantics/LICENSE +0 -0
- package/node_modules/@types/http-cache-semantics/README.md +1 -2
- package/node_modules/@types/http-cache-semantics/index.d.ts +1 -6
- package/node_modules/@types/http-cache-semantics/package.json +5 -5
- package/node_modules/@types/keyv/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/keyv/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/assert.d.ts +48 -24
- package/node_modules/@types/keyv/node_modules/@types/node/async_hooks.d.ts +15 -6
- package/node_modules/@types/keyv/node_modules/@types/node/buffer.d.ts +43 -35
- package/node_modules/@types/keyv/node_modules/@types/node/child_process.d.ts +267 -122
- package/node_modules/@types/keyv/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/keyv/node_modules/@types/node/console.d.ts +17 -14
- package/node_modules/@types/keyv/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/keyv/node_modules/@types/node/crypto.d.ts +755 -269
- package/node_modules/@types/keyv/node_modules/@types/node/dgram.d.ts +86 -45
- package/node_modules/@types/keyv/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/dns/promises.d.ts +28 -25
- package/node_modules/@types/keyv/node_modules/@types/node/dns.d.ts +203 -62
- package/node_modules/@types/keyv/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/keyv/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/events.d.ts +127 -7
- package/node_modules/@types/keyv/node_modules/@types/node/fs/promises.d.ts +115 -73
- package/node_modules/@types/keyv/node_modules/@types/node/fs.d.ts +560 -315
- package/node_modules/@types/keyv/node_modules/@types/node/globals.d.ts +96 -18
- package/node_modules/@types/keyv/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/http.d.ts +359 -195
- package/node_modules/@types/keyv/node_modules/@types/node/http2.d.ts +629 -377
- package/node_modules/@types/keyv/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/keyv/node_modules/@types/node/index.d.ts +0 -46
- package/node_modules/@types/keyv/node_modules/@types/node/inspector.d.ts +2 -3
- package/node_modules/@types/keyv/node_modules/@types/node/module.d.ts +195 -14
- package/node_modules/@types/keyv/node_modules/@types/node/net.d.ts +154 -93
- package/node_modules/@types/keyv/node_modules/@types/node/os.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/package.json +88 -95
- package/node_modules/@types/keyv/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/keyv/node_modules/@types/node/process.d.ts +166 -128
- package/node_modules/@types/keyv/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/keyv/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/keyv/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/keyv/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/keyv/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/keyv/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/keyv/node_modules/@types/node/stream.d.ts +498 -218
- package/node_modules/@types/keyv/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/test.d.ts +398 -170
- package/node_modules/@types/keyv/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/timers.d.ts +34 -9
- package/node_modules/@types/keyv/node_modules/@types/node/tls.d.ts +162 -71
- package/node_modules/@types/keyv/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/console.d.ts +17 -14
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/events.d.ts +79 -7
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http.d.ts +359 -195
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/module.d.ts +195 -14
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/net.d.ts +154 -93
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/os.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/process.d.ts +166 -128
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/test.d.ts +398 -170
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/url.d.ts +40 -14
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/util.d.ts +263 -129
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/wasi.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
- package/node_modules/@types/keyv/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/keyv/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/keyv/node_modules/@types/node/url.d.ts +40 -14
- package/node_modules/@types/keyv/node_modules/@types/node/util.d.ts +263 -129
- package/node_modules/@types/keyv/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/keyv/node_modules/@types/node/vm.d.ts +52 -45
- package/node_modules/@types/keyv/node_modules/@types/node/wasi.d.ts +3 -3
- package/node_modules/@types/keyv/node_modules/@types/node/worker_threads.d.ts +83 -85
- package/node_modules/@types/keyv/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/@types/responselike/LICENSE +21 -21
- package/node_modules/@types/responselike/README.md +39 -7
- package/node_modules/@types/responselike/index.d.ts +3 -8
- package/node_modules/@types/responselike/node_modules/@types/node/LICENSE +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/README.md +4 -5
- package/node_modules/@types/responselike/node_modules/@types/node/assert/strict.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/assert.d.ts +48 -24
- package/node_modules/@types/responselike/node_modules/@types/node/async_hooks.d.ts +15 -6
- package/node_modules/@types/responselike/node_modules/@types/node/buffer.d.ts +43 -35
- package/node_modules/@types/responselike/node_modules/@types/node/child_process.d.ts +267 -122
- package/node_modules/@types/responselike/node_modules/@types/node/cluster.d.ts +107 -89
- package/node_modules/@types/responselike/node_modules/@types/node/console.d.ts +17 -14
- package/node_modules/@types/responselike/node_modules/@types/node/constants.d.ts +12 -11
- package/node_modules/@types/responselike/node_modules/@types/node/crypto.d.ts +755 -269
- package/node_modules/@types/responselike/node_modules/@types/node/dgram.d.ts +86 -45
- package/node_modules/@types/responselike/node_modules/@types/node/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/dns/promises.d.ts +28 -25
- package/node_modules/@types/responselike/node_modules/@types/node/dns.d.ts +203 -62
- package/node_modules/@types/responselike/node_modules/@types/node/dom-events.d.ts +67 -71
- package/node_modules/@types/responselike/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/events.d.ts +127 -7
- package/node_modules/@types/responselike/node_modules/@types/node/fs/promises.d.ts +115 -73
- package/node_modules/@types/responselike/node_modules/@types/node/fs.d.ts +560 -315
- package/node_modules/@types/responselike/node_modules/@types/node/globals.d.ts +96 -18
- package/node_modules/@types/responselike/node_modules/@types/node/globals.global.d.ts +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/http.d.ts +359 -195
- package/node_modules/@types/responselike/node_modules/@types/node/http2.d.ts +629 -377
- package/node_modules/@types/responselike/node_modules/@types/node/https.d.ts +221 -112
- package/node_modules/@types/responselike/node_modules/@types/node/index.d.ts +0 -46
- package/node_modules/@types/responselike/node_modules/@types/node/inspector.d.ts +2 -3
- package/node_modules/@types/responselike/node_modules/@types/node/module.d.ts +195 -14
- package/node_modules/@types/responselike/node_modules/@types/node/net.d.ts +154 -93
- package/node_modules/@types/responselike/node_modules/@types/node/os.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/package.json +88 -95
- package/node_modules/@types/responselike/node_modules/@types/node/path.d.ts +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/perf_hooks.d.ts +19 -18
- package/node_modules/@types/responselike/node_modules/@types/node/process.d.ts +166 -128
- package/node_modules/@types/responselike/node_modules/@types/node/punycode.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/querystring.d.ts +14 -4
- package/node_modules/@types/responselike/node_modules/@types/node/readline/promises.d.ts +12 -7
- package/node_modules/@types/responselike/node_modules/@types/node/readline.d.ts +69 -56
- package/node_modules/@types/responselike/node_modules/@types/node/repl.d.ts +67 -61
- package/node_modules/@types/responselike/node_modules/@types/node/stream/consumers.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/stream/promises.d.ts +56 -15
- package/node_modules/@types/responselike/node_modules/@types/node/stream/web.d.ts +40 -20
- package/node_modules/@types/responselike/node_modules/@types/node/stream.d.ts +498 -218
- package/node_modules/@types/responselike/node_modules/@types/node/string_decoder.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/test.d.ts +398 -170
- package/node_modules/@types/responselike/node_modules/@types/node/timers/promises.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/timers.d.ts +34 -9
- package/node_modules/@types/responselike/node_modules/@types/node/tls.d.ts +162 -71
- package/node_modules/@types/responselike/node_modules/@types/node/trace_events.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert/strict.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/assert.d.ts +48 -24
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/async_hooks.d.ts +15 -6
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/buffer.d.ts +44 -36
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/child_process.d.ts +267 -122
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/cluster.d.ts +107 -89
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/console.d.ts +17 -14
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/constants.d.ts +12 -11
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/crypto.d.ts +755 -269
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dgram.d.ts +86 -45
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns/promises.d.ts +28 -25
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dns.d.ts +203 -62
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/dom-events.d.ts +67 -71
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/domain.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/events.d.ts +79 -7
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs/promises.d.ts +117 -74
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/fs.d.ts +560 -315
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.d.ts +96 -18
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http.d.ts +359 -195
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/http2.d.ts +629 -377
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/https.d.ts +221 -112
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/index.d.ts +0 -0
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/inspector.d.ts +2 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/module.d.ts +195 -14
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/net.d.ts +154 -93
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/os.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/path.d.ts +13 -13
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/perf_hooks.d.ts +19 -18
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/process.d.ts +166 -128
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/punycode.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/querystring.d.ts +14 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline/promises.d.ts +12 -7
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/readline.d.ts +69 -56
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/repl.d.ts +67 -61
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/consumers.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/promises.d.ts +56 -15
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream/web.d.ts +40 -20
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/stream.d.ts +1162 -853
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/string_decoder.d.ts +8 -8
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/test.d.ts +398 -170
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers/promises.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/timers.d.ts +34 -9
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tls.d.ts +162 -71
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/trace_events.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/tty.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/url.d.ts +40 -14
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/util.d.ts +263 -129
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/v8.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/vm.d.ts +52 -45
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/wasi.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/worker_threads.d.ts +83 -85
- package/node_modules/@types/responselike/node_modules/@types/node/ts4.8/zlib.d.ts +9 -9
- package/node_modules/@types/responselike/node_modules/@types/node/tty.d.ts +10 -10
- package/node_modules/@types/responselike/node_modules/@types/node/url.d.ts +40 -14
- package/node_modules/@types/responselike/node_modules/@types/node/util.d.ts +263 -129
- package/node_modules/@types/responselike/node_modules/@types/node/v8.d.ts +4 -4
- package/node_modules/@types/responselike/node_modules/@types/node/vm.d.ts +52 -45
- package/node_modules/@types/responselike/node_modules/@types/node/wasi.d.ts +3 -3
- package/node_modules/@types/responselike/node_modules/@types/node/worker_threads.d.ts +83 -85
- package/node_modules/@types/responselike/node_modules/@types/node/zlib.d.ts +9 -9
- package/node_modules/@types/responselike/package.json +9 -7
- package/node_modules/keyv/README.md +2 -0
- package/node_modules/keyv/package.json +13 -14
- package/node_modules/keyv/src/index.d.ts +6 -10
- package/node_modules/keyv/src/index.js +7 -12
- package/node_modules/undici-types/README.md +6 -0
- package/node_modules/undici-types/agent.d.ts +31 -0
- package/node_modules/undici-types/api.d.ts +43 -0
- package/node_modules/undici-types/balanced-pool.d.ts +18 -0
- package/node_modules/undici-types/cache.d.ts +36 -0
- package/node_modules/undici-types/client.d.ts +97 -0
- package/node_modules/undici-types/connector.d.ts +34 -0
- package/node_modules/undici-types/content-type.d.ts +21 -0
- package/node_modules/undici-types/cookies.d.ts +28 -0
- package/node_modules/undici-types/diagnostics-channel.d.ts +67 -0
- package/node_modules/undici-types/dispatcher.d.ts +241 -0
- package/node_modules/undici-types/errors.d.ts +128 -0
- package/node_modules/undici-types/fetch.d.ts +209 -0
- package/node_modules/undici-types/file.d.ts +39 -0
- package/node_modules/undici-types/filereader.d.ts +54 -0
- package/node_modules/undici-types/formdata.d.ts +108 -0
- package/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/node_modules/undici-types/global-origin.d.ts +7 -0
- package/node_modules/undici-types/handlers.d.ts +9 -0
- package/node_modules/undici-types/header.d.ts +4 -0
- package/node_modules/undici-types/index.d.ts +63 -0
- package/node_modules/undici-types/interceptors.d.ts +5 -0
- package/node_modules/undici-types/mock-agent.d.ts +50 -0
- package/node_modules/undici-types/mock-client.d.ts +25 -0
- package/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/node_modules/undici-types/mock-interceptor.d.ts +93 -0
- package/node_modules/undici-types/mock-pool.d.ts +25 -0
- package/node_modules/undici-types/package.json +55 -0
- package/node_modules/undici-types/patch.d.ts +71 -0
- package/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/node_modules/undici-types/pool.d.ts +28 -0
- package/node_modules/undici-types/proxy-agent.d.ts +30 -0
- package/node_modules/undici-types/readable.d.ts +61 -0
- package/node_modules/undici-types/webidl.d.ts +220 -0
- package/node_modules/undici-types/websocket.d.ts +131 -0
- package/package.json +10 -11
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/buffer-stream.js +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/index.d.ts +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/index.js +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/license +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/package.json +0 -0
- /package/node_modules/{cacheable-request/node_modules/get-stream → get-stream}/readme.md +0 -0
|
@@ -39,39 +39,39 @@
|
|
|
39
39
|
* ```
|
|
40
40
|
* @see [source](https://github.com/nodejs/node/blob/v20.2.0/lib/http.js)
|
|
41
41
|
*/
|
|
42
|
-
declare module
|
|
43
|
-
import * as stream from
|
|
44
|
-
import { URL } from
|
|
45
|
-
import { LookupOptions } from
|
|
46
|
-
import { EventEmitter } from
|
|
47
|
-
import {
|
|
42
|
+
declare module "http" {
|
|
43
|
+
import * as stream from "node:stream";
|
|
44
|
+
import { URL } from "node:url";
|
|
45
|
+
import { LookupOptions } from "node:dns";
|
|
46
|
+
import { EventEmitter } from "node:events";
|
|
47
|
+
import { LookupFunction, Server as NetServer, Socket, TcpSocketConnectOpts } from "node:net";
|
|
48
48
|
// incoming headers will never contain number
|
|
49
49
|
interface IncomingHttpHeaders extends NodeJS.Dict<string | string[]> {
|
|
50
50
|
accept?: string | undefined;
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
51
|
+
"accept-language"?: string | undefined;
|
|
52
|
+
"accept-patch"?: string | undefined;
|
|
53
|
+
"accept-ranges"?: string | undefined;
|
|
54
|
+
"access-control-allow-credentials"?: string | undefined;
|
|
55
|
+
"access-control-allow-headers"?: string | undefined;
|
|
56
|
+
"access-control-allow-methods"?: string | undefined;
|
|
57
|
+
"access-control-allow-origin"?: string | undefined;
|
|
58
|
+
"access-control-expose-headers"?: string | undefined;
|
|
59
|
+
"access-control-max-age"?: string | undefined;
|
|
60
|
+
"access-control-request-headers"?: string | undefined;
|
|
61
|
+
"access-control-request-method"?: string | undefined;
|
|
62
62
|
age?: string | undefined;
|
|
63
63
|
allow?: string | undefined;
|
|
64
|
-
|
|
64
|
+
"alt-svc"?: string | undefined;
|
|
65
65
|
authorization?: string | undefined;
|
|
66
|
-
|
|
66
|
+
"cache-control"?: string | undefined;
|
|
67
67
|
connection?: string | undefined;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
68
|
+
"content-disposition"?: string | undefined;
|
|
69
|
+
"content-encoding"?: string | undefined;
|
|
70
|
+
"content-language"?: string | undefined;
|
|
71
|
+
"content-length"?: string | undefined;
|
|
72
|
+
"content-location"?: string | undefined;
|
|
73
|
+
"content-range"?: string | undefined;
|
|
74
|
+
"content-type"?: string | undefined;
|
|
75
75
|
cookie?: string | undefined;
|
|
76
76
|
date?: string | undefined;
|
|
77
77
|
etag?: string | undefined;
|
|
@@ -80,40 +80,120 @@ declare module 'http' {
|
|
|
80
80
|
forwarded?: string | undefined;
|
|
81
81
|
from?: string | undefined;
|
|
82
82
|
host?: string | undefined;
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
"if-match"?: string | undefined;
|
|
84
|
+
"if-modified-since"?: string | undefined;
|
|
85
|
+
"if-none-match"?: string | undefined;
|
|
86
|
+
"if-unmodified-since"?: string | undefined;
|
|
87
|
+
"last-modified"?: string | undefined;
|
|
88
88
|
location?: string | undefined;
|
|
89
89
|
origin?: string | undefined;
|
|
90
90
|
pragma?: string | undefined;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
91
|
+
"proxy-authenticate"?: string | undefined;
|
|
92
|
+
"proxy-authorization"?: string | undefined;
|
|
93
|
+
"public-key-pins"?: string | undefined;
|
|
94
94
|
range?: string | undefined;
|
|
95
95
|
referer?: string | undefined;
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
96
|
+
"retry-after"?: string | undefined;
|
|
97
|
+
"sec-websocket-accept"?: string | undefined;
|
|
98
|
+
"sec-websocket-extensions"?: string | undefined;
|
|
99
|
+
"sec-websocket-key"?: string | undefined;
|
|
100
|
+
"sec-websocket-protocol"?: string | undefined;
|
|
101
|
+
"sec-websocket-version"?: string | undefined;
|
|
102
|
+
"set-cookie"?: string[] | undefined;
|
|
103
|
+
"strict-transport-security"?: string | undefined;
|
|
104
104
|
tk?: string | undefined;
|
|
105
105
|
trailer?: string | undefined;
|
|
106
|
-
|
|
106
|
+
"transfer-encoding"?: string | undefined;
|
|
107
107
|
upgrade?: string | undefined;
|
|
108
|
-
|
|
108
|
+
"user-agent"?: string | undefined;
|
|
109
109
|
vary?: string | undefined;
|
|
110
110
|
via?: string | undefined;
|
|
111
111
|
warning?: string | undefined;
|
|
112
|
-
|
|
112
|
+
"www-authenticate"?: string | undefined;
|
|
113
113
|
}
|
|
114
114
|
// outgoing headers allows numbers (as they are converted internally to strings)
|
|
115
115
|
type OutgoingHttpHeader = number | string | string[];
|
|
116
|
-
interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
|
|
116
|
+
interface OutgoingHttpHeaders extends NodeJS.Dict<OutgoingHttpHeader> {
|
|
117
|
+
accept?: string | string[] | undefined;
|
|
118
|
+
"accept-charset"?: string | string[] | undefined;
|
|
119
|
+
"accept-encoding"?: string | string[] | undefined;
|
|
120
|
+
"accept-language"?: string | string[] | undefined;
|
|
121
|
+
"accept-ranges"?: string | undefined;
|
|
122
|
+
"access-control-allow-credentials"?: string | undefined;
|
|
123
|
+
"access-control-allow-headers"?: string | undefined;
|
|
124
|
+
"access-control-allow-methods"?: string | undefined;
|
|
125
|
+
"access-control-allow-origin"?: string | undefined;
|
|
126
|
+
"access-control-expose-headers"?: string | undefined;
|
|
127
|
+
"access-control-max-age"?: string | undefined;
|
|
128
|
+
"access-control-request-headers"?: string | undefined;
|
|
129
|
+
"access-control-request-method"?: string | undefined;
|
|
130
|
+
age?: string | undefined;
|
|
131
|
+
allow?: string | undefined;
|
|
132
|
+
authorization?: string | undefined;
|
|
133
|
+
"cache-control"?: string | undefined;
|
|
134
|
+
"cdn-cache-control"?: string | undefined;
|
|
135
|
+
connection?: string | string[] | undefined;
|
|
136
|
+
"content-disposition"?: string | undefined;
|
|
137
|
+
"content-encoding"?: string | undefined;
|
|
138
|
+
"content-language"?: string | undefined;
|
|
139
|
+
"content-length"?: string | number | undefined;
|
|
140
|
+
"content-location"?: string | undefined;
|
|
141
|
+
"content-range"?: string | undefined;
|
|
142
|
+
"content-security-policy"?: string | undefined;
|
|
143
|
+
"content-security-policy-report-only"?: string | undefined;
|
|
144
|
+
cookie?: string | string[] | undefined;
|
|
145
|
+
dav?: string | string[] | undefined;
|
|
146
|
+
dnt?: string | undefined;
|
|
147
|
+
date?: string | undefined;
|
|
148
|
+
etag?: string | undefined;
|
|
149
|
+
expect?: string | undefined;
|
|
150
|
+
expires?: string | undefined;
|
|
151
|
+
forwarded?: string | undefined;
|
|
152
|
+
from?: string | undefined;
|
|
153
|
+
host?: string | undefined;
|
|
154
|
+
"if-match"?: string | undefined;
|
|
155
|
+
"if-modified-since"?: string | undefined;
|
|
156
|
+
"if-none-match"?: string | undefined;
|
|
157
|
+
"if-range"?: string | undefined;
|
|
158
|
+
"if-unmodified-since"?: string | undefined;
|
|
159
|
+
"last-modified"?: string | undefined;
|
|
160
|
+
link?: string | string[] | undefined;
|
|
161
|
+
location?: string | undefined;
|
|
162
|
+
"max-forwards"?: string | undefined;
|
|
163
|
+
origin?: string | undefined;
|
|
164
|
+
prgama?: string | string[] | undefined;
|
|
165
|
+
"proxy-authenticate"?: string | string[] | undefined;
|
|
166
|
+
"proxy-authorization"?: string | undefined;
|
|
167
|
+
"public-key-pins"?: string | undefined;
|
|
168
|
+
"public-key-pins-report-only"?: string | undefined;
|
|
169
|
+
range?: string | undefined;
|
|
170
|
+
referer?: string | undefined;
|
|
171
|
+
"referrer-policy"?: string | undefined;
|
|
172
|
+
refresh?: string | undefined;
|
|
173
|
+
"retry-after"?: string | undefined;
|
|
174
|
+
"sec-websocket-accept"?: string | undefined;
|
|
175
|
+
"sec-websocket-extensions"?: string | string[] | undefined;
|
|
176
|
+
"sec-websocket-key"?: string | undefined;
|
|
177
|
+
"sec-websocket-protocol"?: string | string[] | undefined;
|
|
178
|
+
"sec-websocket-version"?: string | undefined;
|
|
179
|
+
server?: string | undefined;
|
|
180
|
+
"set-cookie"?: string | string[] | undefined;
|
|
181
|
+
"strict-transport-security"?: string | undefined;
|
|
182
|
+
te?: string | undefined;
|
|
183
|
+
trailer?: string | undefined;
|
|
184
|
+
"transfer-encoding"?: string | undefined;
|
|
185
|
+
"user-agent"?: string | undefined;
|
|
186
|
+
upgrade?: string | undefined;
|
|
187
|
+
"upgrade-insecure-requests"?: string | undefined;
|
|
188
|
+
vary?: string | undefined;
|
|
189
|
+
via?: string | string[] | undefined;
|
|
190
|
+
warning?: string | undefined;
|
|
191
|
+
"www-authenticate"?: string | string[] | undefined;
|
|
192
|
+
"x-content-type-options"?: string | undefined;
|
|
193
|
+
"x-dns-prefetch-control"?: string | undefined;
|
|
194
|
+
"x-frame-options"?: string | undefined;
|
|
195
|
+
"x-xss-protection"?: string | undefined;
|
|
196
|
+
}
|
|
117
197
|
interface ClientRequestArgs {
|
|
118
198
|
_defaultAgent?: Agent | undefined;
|
|
119
199
|
agent?: Agent | boolean | undefined;
|
|
@@ -125,7 +205,7 @@ declare module 'http' {
|
|
|
125
205
|
defaultPort?: number | string | undefined;
|
|
126
206
|
family?: number | undefined;
|
|
127
207
|
headers?: OutgoingHttpHeaders | undefined;
|
|
128
|
-
hints?: LookupOptions[
|
|
208
|
+
hints?: LookupOptions["hints"];
|
|
129
209
|
host?: string | null | undefined;
|
|
130
210
|
hostname?: string | null | undefined;
|
|
131
211
|
insecureHTTPParser?: boolean | undefined;
|
|
@@ -343,89 +423,119 @@ declare module 'http' {
|
|
|
343
423
|
*/
|
|
344
424
|
closeIdleConnections(): void;
|
|
345
425
|
addListener(event: string, listener: (...args: any[]) => void): this;
|
|
346
|
-
addListener(event:
|
|
347
|
-
addListener(event:
|
|
348
|
-
addListener(event:
|
|
349
|
-
addListener(event:
|
|
350
|
-
addListener(event:
|
|
351
|
-
addListener(event:
|
|
352
|
-
addListener(event:
|
|
353
|
-
addListener(
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
426
|
+
addListener(event: "close", listener: () => void): this;
|
|
427
|
+
addListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
428
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
429
|
+
addListener(event: "listening", listener: () => void): this;
|
|
430
|
+
addListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
|
|
431
|
+
addListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
|
|
432
|
+
addListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
|
|
433
|
+
addListener(
|
|
434
|
+
event: "connect",
|
|
435
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
436
|
+
): this;
|
|
437
|
+
addListener(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
|
|
438
|
+
addListener(event: "request", listener: RequestListener<Request, Response>): this;
|
|
439
|
+
addListener(
|
|
440
|
+
event: "upgrade",
|
|
441
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
442
|
+
): this;
|
|
357
443
|
emit(event: string, ...args: any[]): boolean;
|
|
358
|
-
emit(event:
|
|
359
|
-
emit(event:
|
|
360
|
-
emit(event:
|
|
361
|
-
emit(event:
|
|
444
|
+
emit(event: "close"): boolean;
|
|
445
|
+
emit(event: "connection", socket: Socket): boolean;
|
|
446
|
+
emit(event: "error", err: Error): boolean;
|
|
447
|
+
emit(event: "listening"): boolean;
|
|
362
448
|
emit(
|
|
363
|
-
event:
|
|
449
|
+
event: "checkContinue",
|
|
364
450
|
req: InstanceType<Request>,
|
|
365
451
|
res: InstanceType<Response> & { req: InstanceType<Request> },
|
|
366
452
|
): boolean;
|
|
367
453
|
emit(
|
|
368
|
-
event:
|
|
454
|
+
event: "checkExpectation",
|
|
369
455
|
req: InstanceType<Request>,
|
|
370
456
|
res: InstanceType<Response> & { req: InstanceType<Request> },
|
|
371
457
|
): boolean;
|
|
372
|
-
emit(event:
|
|
373
|
-
emit(event:
|
|
374
|
-
emit(event:
|
|
458
|
+
emit(event: "clientError", err: Error, socket: stream.Duplex): boolean;
|
|
459
|
+
emit(event: "connect", req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
|
|
460
|
+
emit(event: "dropRequest", req: InstanceType<Request>, socket: stream.Duplex): boolean;
|
|
375
461
|
emit(
|
|
376
|
-
event:
|
|
462
|
+
event: "request",
|
|
377
463
|
req: InstanceType<Request>,
|
|
378
464
|
res: InstanceType<Response> & { req: InstanceType<Request> },
|
|
379
465
|
): boolean;
|
|
380
|
-
emit(event:
|
|
466
|
+
emit(event: "upgrade", req: InstanceType<Request>, socket: stream.Duplex, head: Buffer): boolean;
|
|
381
467
|
on(event: string, listener: (...args: any[]) => void): this;
|
|
382
|
-
on(event:
|
|
383
|
-
on(event:
|
|
384
|
-
on(event:
|
|
385
|
-
on(event:
|
|
386
|
-
on(event:
|
|
387
|
-
on(event:
|
|
388
|
-
on(event:
|
|
389
|
-
on(event:
|
|
390
|
-
on(event:
|
|
391
|
-
on(event:
|
|
392
|
-
on(event:
|
|
468
|
+
on(event: "close", listener: () => void): this;
|
|
469
|
+
on(event: "connection", listener: (socket: Socket) => void): this;
|
|
470
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
471
|
+
on(event: "listening", listener: () => void): this;
|
|
472
|
+
on(event: "checkContinue", listener: RequestListener<Request, Response>): this;
|
|
473
|
+
on(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
|
|
474
|
+
on(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
|
|
475
|
+
on(event: "connect", listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
|
|
476
|
+
on(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
|
|
477
|
+
on(event: "request", listener: RequestListener<Request, Response>): this;
|
|
478
|
+
on(event: "upgrade", listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void): this;
|
|
393
479
|
once(event: string, listener: (...args: any[]) => void): this;
|
|
394
|
-
once(event:
|
|
395
|
-
once(event:
|
|
396
|
-
once(event:
|
|
397
|
-
once(event:
|
|
398
|
-
once(event:
|
|
399
|
-
once(event:
|
|
400
|
-
once(event:
|
|
401
|
-
once(
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
480
|
+
once(event: "close", listener: () => void): this;
|
|
481
|
+
once(event: "connection", listener: (socket: Socket) => void): this;
|
|
482
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
483
|
+
once(event: "listening", listener: () => void): this;
|
|
484
|
+
once(event: "checkContinue", listener: RequestListener<Request, Response>): this;
|
|
485
|
+
once(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
|
|
486
|
+
once(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
|
|
487
|
+
once(
|
|
488
|
+
event: "connect",
|
|
489
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
490
|
+
): this;
|
|
491
|
+
once(event: "dropRequest", listener: (req: InstanceType<Request>, socket: stream.Duplex) => void): this;
|
|
492
|
+
once(event: "request", listener: RequestListener<Request, Response>): this;
|
|
493
|
+
once(
|
|
494
|
+
event: "upgrade",
|
|
495
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
496
|
+
): this;
|
|
405
497
|
prependListener(event: string, listener: (...args: any[]) => void): this;
|
|
406
|
-
prependListener(event:
|
|
407
|
-
prependListener(event:
|
|
408
|
-
prependListener(event:
|
|
409
|
-
prependListener(event:
|
|
410
|
-
prependListener(event:
|
|
411
|
-
prependListener(event:
|
|
412
|
-
prependListener(event:
|
|
413
|
-
prependListener(
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
498
|
+
prependListener(event: "close", listener: () => void): this;
|
|
499
|
+
prependListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
500
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
501
|
+
prependListener(event: "listening", listener: () => void): this;
|
|
502
|
+
prependListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
|
|
503
|
+
prependListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
|
|
504
|
+
prependListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
|
|
505
|
+
prependListener(
|
|
506
|
+
event: "connect",
|
|
507
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
508
|
+
): this;
|
|
509
|
+
prependListener(
|
|
510
|
+
event: "dropRequest",
|
|
511
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex) => void,
|
|
512
|
+
): this;
|
|
513
|
+
prependListener(event: "request", listener: RequestListener<Request, Response>): this;
|
|
514
|
+
prependListener(
|
|
515
|
+
event: "upgrade",
|
|
516
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
517
|
+
): this;
|
|
417
518
|
prependOnceListener(event: string, listener: (...args: any[]) => void): this;
|
|
418
|
-
prependOnceListener(event:
|
|
419
|
-
prependOnceListener(event:
|
|
420
|
-
prependOnceListener(event:
|
|
421
|
-
prependOnceListener(event:
|
|
422
|
-
prependOnceListener(event:
|
|
423
|
-
prependOnceListener(event:
|
|
424
|
-
prependOnceListener(event:
|
|
425
|
-
prependOnceListener(
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
519
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
520
|
+
prependOnceListener(event: "connection", listener: (socket: Socket) => void): this;
|
|
521
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
522
|
+
prependOnceListener(event: "listening", listener: () => void): this;
|
|
523
|
+
prependOnceListener(event: "checkContinue", listener: RequestListener<Request, Response>): this;
|
|
524
|
+
prependOnceListener(event: "checkExpectation", listener: RequestListener<Request, Response>): this;
|
|
525
|
+
prependOnceListener(event: "clientError", listener: (err: Error, socket: stream.Duplex) => void): this;
|
|
526
|
+
prependOnceListener(
|
|
527
|
+
event: "connect",
|
|
528
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
529
|
+
): this;
|
|
530
|
+
prependOnceListener(
|
|
531
|
+
event: "dropRequest",
|
|
532
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex) => void,
|
|
533
|
+
): this;
|
|
534
|
+
prependOnceListener(event: "request", listener: RequestListener<Request, Response>): this;
|
|
535
|
+
prependOnceListener(
|
|
536
|
+
event: "upgrade",
|
|
537
|
+
listener: (req: InstanceType<Request>, socket: stream.Duplex, head: Buffer) => void,
|
|
538
|
+
): this;
|
|
429
539
|
}
|
|
430
540
|
/**
|
|
431
541
|
* This class serves as the parent class of {@link ClientRequest} and {@link ServerResponse}. It is an abstract outgoing message from
|
|
@@ -803,7 +913,7 @@ declare module 'http' {
|
|
|
803
913
|
* may run into a 'ECONNRESET' error.
|
|
804
914
|
*
|
|
805
915
|
* ```js
|
|
806
|
-
*
|
|
916
|
+
* import http from 'node:http';
|
|
807
917
|
*
|
|
808
918
|
* // Server has a 5 seconds keep-alive timeout by default
|
|
809
919
|
* http
|
|
@@ -827,7 +937,7 @@ declare module 'http' {
|
|
|
827
937
|
* automatic error retry base on it.
|
|
828
938
|
*
|
|
829
939
|
* ```js
|
|
830
|
-
*
|
|
940
|
+
* import http from 'node:http';
|
|
831
941
|
* const agent = new http.Agent({ keepAlive: true });
|
|
832
942
|
*
|
|
833
943
|
* function retriableRequest() {
|
|
@@ -905,92 +1015,110 @@ declare module 'http' {
|
|
|
905
1015
|
/**
|
|
906
1016
|
* @deprecated
|
|
907
1017
|
*/
|
|
908
|
-
addListener(event:
|
|
909
|
-
addListener(
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
addListener(event:
|
|
914
|
-
addListener(event:
|
|
915
|
-
addListener(event:
|
|
916
|
-
addListener(event:
|
|
917
|
-
addListener(event:
|
|
918
|
-
addListener(
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1018
|
+
addListener(event: "abort", listener: () => void): this;
|
|
1019
|
+
addListener(
|
|
1020
|
+
event: "connect",
|
|
1021
|
+
listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
|
|
1022
|
+
): this;
|
|
1023
|
+
addListener(event: "continue", listener: () => void): this;
|
|
1024
|
+
addListener(event: "information", listener: (info: InformationEvent) => void): this;
|
|
1025
|
+
addListener(event: "response", listener: (response: IncomingMessage) => void): this;
|
|
1026
|
+
addListener(event: "socket", listener: (socket: Socket) => void): this;
|
|
1027
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
1028
|
+
addListener(
|
|
1029
|
+
event: "upgrade",
|
|
1030
|
+
listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
|
|
1031
|
+
): this;
|
|
1032
|
+
addListener(event: "close", listener: () => void): this;
|
|
1033
|
+
addListener(event: "drain", listener: () => void): this;
|
|
1034
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
1035
|
+
addListener(event: "finish", listener: () => void): this;
|
|
1036
|
+
addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
1037
|
+
addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
922
1038
|
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
923
1039
|
/**
|
|
924
1040
|
* @deprecated
|
|
925
1041
|
*/
|
|
926
|
-
on(event:
|
|
927
|
-
on(event:
|
|
928
|
-
on(event:
|
|
929
|
-
on(event:
|
|
930
|
-
on(event:
|
|
931
|
-
on(event:
|
|
932
|
-
on(event:
|
|
933
|
-
on(event:
|
|
934
|
-
on(event:
|
|
935
|
-
on(event:
|
|
936
|
-
on(event:
|
|
937
|
-
on(event:
|
|
938
|
-
on(event:
|
|
939
|
-
on(event:
|
|
1042
|
+
on(event: "abort", listener: () => void): this;
|
|
1043
|
+
on(event: "connect", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
|
|
1044
|
+
on(event: "continue", listener: () => void): this;
|
|
1045
|
+
on(event: "information", listener: (info: InformationEvent) => void): this;
|
|
1046
|
+
on(event: "response", listener: (response: IncomingMessage) => void): this;
|
|
1047
|
+
on(event: "socket", listener: (socket: Socket) => void): this;
|
|
1048
|
+
on(event: "timeout", listener: () => void): this;
|
|
1049
|
+
on(event: "upgrade", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
|
|
1050
|
+
on(event: "close", listener: () => void): this;
|
|
1051
|
+
on(event: "drain", listener: () => void): this;
|
|
1052
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
1053
|
+
on(event: "finish", listener: () => void): this;
|
|
1054
|
+
on(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
1055
|
+
on(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
940
1056
|
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
941
1057
|
/**
|
|
942
1058
|
* @deprecated
|
|
943
1059
|
*/
|
|
944
|
-
once(event:
|
|
945
|
-
once(event:
|
|
946
|
-
once(event:
|
|
947
|
-
once(event:
|
|
948
|
-
once(event:
|
|
949
|
-
once(event:
|
|
950
|
-
once(event:
|
|
951
|
-
once(event:
|
|
952
|
-
once(event:
|
|
953
|
-
once(event:
|
|
954
|
-
once(event:
|
|
955
|
-
once(event:
|
|
956
|
-
once(event:
|
|
957
|
-
once(event:
|
|
1060
|
+
once(event: "abort", listener: () => void): this;
|
|
1061
|
+
once(event: "connect", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
|
|
1062
|
+
once(event: "continue", listener: () => void): this;
|
|
1063
|
+
once(event: "information", listener: (info: InformationEvent) => void): this;
|
|
1064
|
+
once(event: "response", listener: (response: IncomingMessage) => void): this;
|
|
1065
|
+
once(event: "socket", listener: (socket: Socket) => void): this;
|
|
1066
|
+
once(event: "timeout", listener: () => void): this;
|
|
1067
|
+
once(event: "upgrade", listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void): this;
|
|
1068
|
+
once(event: "close", listener: () => void): this;
|
|
1069
|
+
once(event: "drain", listener: () => void): this;
|
|
1070
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
1071
|
+
once(event: "finish", listener: () => void): this;
|
|
1072
|
+
once(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
1073
|
+
once(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
958
1074
|
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
959
1075
|
/**
|
|
960
1076
|
* @deprecated
|
|
961
1077
|
*/
|
|
962
|
-
prependListener(event:
|
|
963
|
-
prependListener(
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
prependListener(event:
|
|
968
|
-
prependListener(event:
|
|
969
|
-
prependListener(event:
|
|
970
|
-
prependListener(event:
|
|
971
|
-
prependListener(event:
|
|
972
|
-
prependListener(
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1078
|
+
prependListener(event: "abort", listener: () => void): this;
|
|
1079
|
+
prependListener(
|
|
1080
|
+
event: "connect",
|
|
1081
|
+
listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
|
|
1082
|
+
): this;
|
|
1083
|
+
prependListener(event: "continue", listener: () => void): this;
|
|
1084
|
+
prependListener(event: "information", listener: (info: InformationEvent) => void): this;
|
|
1085
|
+
prependListener(event: "response", listener: (response: IncomingMessage) => void): this;
|
|
1086
|
+
prependListener(event: "socket", listener: (socket: Socket) => void): this;
|
|
1087
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
1088
|
+
prependListener(
|
|
1089
|
+
event: "upgrade",
|
|
1090
|
+
listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
|
|
1091
|
+
): this;
|
|
1092
|
+
prependListener(event: "close", listener: () => void): this;
|
|
1093
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
1094
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
1095
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
1096
|
+
prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
1097
|
+
prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
976
1098
|
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
977
1099
|
/**
|
|
978
1100
|
* @deprecated
|
|
979
1101
|
*/
|
|
980
|
-
prependOnceListener(event:
|
|
981
|
-
prependOnceListener(
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
prependOnceListener(event:
|
|
986
|
-
prependOnceListener(event:
|
|
987
|
-
prependOnceListener(event:
|
|
988
|
-
prependOnceListener(event:
|
|
989
|
-
prependOnceListener(event:
|
|
990
|
-
prependOnceListener(
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
1102
|
+
prependOnceListener(event: "abort", listener: () => void): this;
|
|
1103
|
+
prependOnceListener(
|
|
1104
|
+
event: "connect",
|
|
1105
|
+
listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
|
|
1106
|
+
): this;
|
|
1107
|
+
prependOnceListener(event: "continue", listener: () => void): this;
|
|
1108
|
+
prependOnceListener(event: "information", listener: (info: InformationEvent) => void): this;
|
|
1109
|
+
prependOnceListener(event: "response", listener: (response: IncomingMessage) => void): this;
|
|
1110
|
+
prependOnceListener(event: "socket", listener: (socket: Socket) => void): this;
|
|
1111
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
1112
|
+
prependOnceListener(
|
|
1113
|
+
event: "upgrade",
|
|
1114
|
+
listener: (response: IncomingMessage, socket: Socket, head: Buffer) => void,
|
|
1115
|
+
): this;
|
|
1116
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
1117
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
1118
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
1119
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
1120
|
+
prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
1121
|
+
prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
994
1122
|
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
995
1123
|
}
|
|
996
1124
|
/**
|
|
@@ -1254,7 +1382,7 @@ declare module 'http' {
|
|
|
1254
1382
|
* Scheduling strategy to apply when picking the next free socket to use.
|
|
1255
1383
|
* @default `lifo`
|
|
1256
1384
|
*/
|
|
1257
|
-
scheduling?:
|
|
1385
|
+
scheduling?: "fifo" | "lifo" | undefined;
|
|
1258
1386
|
}
|
|
1259
1387
|
/**
|
|
1260
1388
|
* An `Agent` is responsible for managing connection persistence
|
|
@@ -1375,6 +1503,37 @@ declare module 'http' {
|
|
|
1375
1503
|
*
|
|
1376
1504
|
* The `requestListener` is a function which is automatically
|
|
1377
1505
|
* added to the `'request'` event.
|
|
1506
|
+
*
|
|
1507
|
+
* ```js
|
|
1508
|
+
* import http from 'node:http';
|
|
1509
|
+
*
|
|
1510
|
+
* // Create a local server to receive data from
|
|
1511
|
+
* const server = http.createServer((req, res) => {
|
|
1512
|
+
* res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
1513
|
+
* res.end(JSON.stringify({
|
|
1514
|
+
* data: 'Hello World!',
|
|
1515
|
+
* }));
|
|
1516
|
+
* });
|
|
1517
|
+
*
|
|
1518
|
+
* server.listen(8000);
|
|
1519
|
+
* ```
|
|
1520
|
+
*
|
|
1521
|
+
* ```js
|
|
1522
|
+
* import http from 'node:http';
|
|
1523
|
+
*
|
|
1524
|
+
* // Create a local server to receive data from
|
|
1525
|
+
* const server = http.createServer();
|
|
1526
|
+
*
|
|
1527
|
+
* // Listen to the request event
|
|
1528
|
+
* server.on('request', (request, res) => {
|
|
1529
|
+
* res.writeHead(200, { 'Content-Type': 'application/json' });
|
|
1530
|
+
* res.end(JSON.stringify({
|
|
1531
|
+
* data: 'Hello World!',
|
|
1532
|
+
* }));
|
|
1533
|
+
* });
|
|
1534
|
+
*
|
|
1535
|
+
* server.listen(8000);
|
|
1536
|
+
* ```
|
|
1378
1537
|
* @since v0.1.13
|
|
1379
1538
|
*/
|
|
1380
1539
|
function createServer<
|
|
@@ -1409,7 +1568,8 @@ declare module 'http' {
|
|
|
1409
1568
|
* upload a file with a POST request, then write to the `ClientRequest` object.
|
|
1410
1569
|
*
|
|
1411
1570
|
* ```js
|
|
1412
|
-
*
|
|
1571
|
+
* import http from 'node:http';
|
|
1572
|
+
* import { Buffer } from 'node:buffer';
|
|
1413
1573
|
*
|
|
1414
1574
|
* const postData = JSON.stringify({
|
|
1415
1575
|
* 'msg': 'Hello World!',
|
|
@@ -1579,11 +1739,15 @@ declare module 'http' {
|
|
|
1579
1739
|
* @since v0.3.6
|
|
1580
1740
|
*/
|
|
1581
1741
|
function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
1582
|
-
function request(
|
|
1742
|
+
function request(
|
|
1743
|
+
url: string | URL,
|
|
1744
|
+
options: RequestOptions,
|
|
1745
|
+
callback?: (res: IncomingMessage) => void,
|
|
1746
|
+
): ClientRequest;
|
|
1583
1747
|
/**
|
|
1584
1748
|
* Since most requests are GET requests without bodies, Node.js provides this
|
|
1585
|
-
* 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
|
|
1586
|
-
* response
|
|
1749
|
+
* convenience method. The only difference between this method and {@link request} is that it sets the method to GET by default and calls `req.end()`automatically. The callback must take care to
|
|
1750
|
+
* consume the response
|
|
1587
1751
|
* data for reasons stated in {@link ClientRequest} section.
|
|
1588
1752
|
*
|
|
1589
1753
|
* The `callback` is invoked with a single argument that is an instance of {@link IncomingMessage}.
|
|
@@ -1638,7 +1802,7 @@ declare module 'http' {
|
|
|
1638
1802
|
* server.listen(8000);
|
|
1639
1803
|
* ```
|
|
1640
1804
|
* @since v0.3.6
|
|
1641
|
-
* @param options Accepts the same `options` as {@link request}, with the
|
|
1805
|
+
* @param options Accepts the same `options` as {@link request}, with the method set to GET by default.
|
|
1642
1806
|
*/
|
|
1643
1807
|
function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
1644
1808
|
function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
@@ -1655,7 +1819,7 @@ declare module 'http' {
|
|
|
1655
1819
|
* Example:
|
|
1656
1820
|
*
|
|
1657
1821
|
* ```js
|
|
1658
|
-
*
|
|
1822
|
+
* import { validateHeaderName } from 'node:http';
|
|
1659
1823
|
*
|
|
1660
1824
|
* try {
|
|
1661
1825
|
* validateHeaderName('');
|
|
@@ -1683,7 +1847,7 @@ declare module 'http' {
|
|
|
1683
1847
|
* Examples:
|
|
1684
1848
|
*
|
|
1685
1849
|
* ```js
|
|
1686
|
-
*
|
|
1850
|
+
* import { validateHeaderValue } from 'node:http';
|
|
1687
1851
|
*
|
|
1688
1852
|
* try {
|
|
1689
1853
|
* validateHeaderValue('x-my-header', undefined);
|
|
@@ -1719,6 +1883,6 @@ declare module 'http' {
|
|
|
1719
1883
|
*/
|
|
1720
1884
|
const maxHeaderSize: number;
|
|
1721
1885
|
}
|
|
1722
|
-
declare module
|
|
1723
|
-
export * from
|
|
1886
|
+
declare module "node:http" {
|
|
1887
|
+
export * from "http";
|
|
1724
1888
|
}
|