node-red-contrib-tak-registration 0.11.6 → 0.12.0
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/node_modules/@types/node/README.md +2 -2
- package/node_modules/@types/node/assert.d.ts +88 -44
- package/node_modules/@types/node/async_hooks.d.ts +17 -15
- package/node_modules/@types/node/buffer.d.ts +29 -29
- package/node_modules/@types/node/child_process.d.ts +38 -34
- package/node_modules/@types/node/cluster.d.ts +165 -19
- package/node_modules/@types/node/console.d.ts +64 -27
- package/node_modules/@types/node/crypto.d.ts +101 -65
- package/node_modules/@types/node/dgram.d.ts +14 -14
- package/node_modules/@types/node/diagnostics_channel.d.ts +12 -3
- package/node_modules/@types/node/dns/promises.d.ts +79 -28
- package/node_modules/@types/node/dns.d.ts +124 -69
- package/node_modules/@types/node/dom-events.d.ts +2 -0
- package/node_modules/@types/node/domain.d.ts +4 -4
- package/node_modules/@types/node/events.d.ts +115 -63
- package/node_modules/@types/node/fs/promises.d.ts +18 -12
- package/node_modules/@types/node/fs.d.ts +45 -39
- package/node_modules/@types/node/globals.d.ts +1 -0
- package/node_modules/@types/node/http.d.ts +69 -48
- package/node_modules/@types/node/http2.d.ts +83 -47
- package/node_modules/@types/node/https.d.ts +3 -3
- package/node_modules/@types/node/index.d.ts +1 -0
- package/node_modules/@types/node/inspector.d.ts +5 -6
- package/node_modules/@types/node/net.d.ts +58 -13
- package/node_modules/@types/node/os.d.ts +29 -12
- package/node_modules/@types/node/package.json +3 -15
- package/node_modules/@types/node/path.d.ts +1 -1
- package/node_modules/@types/node/perf_hooks.d.ts +308 -48
- package/node_modules/@types/node/process.d.ts +241 -48
- package/node_modules/@types/node/punycode.d.ts +4 -4
- package/node_modules/@types/node/querystring.d.ts +18 -6
- package/node_modules/@types/node/readline/promises.d.ts +9 -9
- package/node_modules/@types/node/readline.d.ts +21 -20
- package/node_modules/@types/node/repl.d.ts +10 -10
- package/node_modules/@types/node/sea.d.ts +153 -0
- package/node_modules/@types/node/stream/web.d.ts +3 -2
- package/node_modules/@types/node/stream.d.ts +62 -56
- package/node_modules/@types/node/string_decoder.d.ts +3 -3
- package/node_modules/@types/node/test.d.ts +350 -97
- package/node_modules/@types/node/timers/promises.d.ts +10 -6
- package/node_modules/@types/node/timers.d.ts +5 -5
- package/node_modules/@types/node/tls.d.ts +39 -32
- package/node_modules/@types/node/trace_events.d.ts +40 -25
- package/node_modules/@types/node/tty.d.ts +8 -8
- package/node_modules/@types/node/url.d.ts +15 -7
- package/node_modules/@types/node/util.d.ts +131 -22
- package/node_modules/@types/node/v8.d.ts +50 -6
- package/node_modules/@types/node/vm.d.ts +43 -22
- package/node_modules/@types/node/wasi.d.ts +12 -10
- package/node_modules/@types/node/worker_threads.d.ts +19 -16
- package/node_modules/@types/node/zlib.d.ts +16 -3
- package/node_modules/adm-zip/README.md +2 -1
- package/node_modules/adm-zip/adm-zip.js +46 -45
- package/node_modules/adm-zip/headers/entryHeader.js +14 -12
- package/node_modules/adm-zip/headers/mainHeader.js +1 -1
- package/node_modules/adm-zip/methods/inflater.js +6 -3
- package/node_modules/adm-zip/methods/zipcrypto.js +6 -2
- package/node_modules/adm-zip/package.json +2 -2
- package/node_modules/adm-zip/util/errors.js +1 -0
- package/node_modules/adm-zip/zipEntry.js +64 -43
- package/node_modules/adm-zip/zipFile.js +35 -35
- package/node_modules/axios/CHANGELOG.md +868 -759
- package/node_modules/axios/README.md +65 -17
- package/node_modules/axios/dist/axios.js +1330 -583
- package/node_modules/axios/dist/axios.js.map +1 -1
- package/node_modules/axios/dist/axios.min.js +1 -1
- package/node_modules/axios/dist/axios.min.js.map +1 -1
- package/node_modules/axios/dist/browser/axios.cjs +696 -316
- package/node_modules/axios/dist/browser/axios.cjs.map +1 -1
- package/node_modules/axios/dist/esm/axios.js +696 -316
- package/node_modules/axios/dist/esm/axios.js.map +1 -1
- package/node_modules/axios/dist/esm/axios.min.js +1 -1
- package/node_modules/axios/dist/esm/axios.min.js.map +1 -1
- package/node_modules/axios/dist/node/axios.cjs +607 -257
- package/node_modules/axios/dist/node/axios.cjs.map +1 -1
- package/node_modules/axios/index.d.cts +5 -2
- package/node_modules/axios/index.d.ts +5 -2
- package/node_modules/axios/lib/adapters/adapters.js +3 -1
- package/node_modules/axios/lib/adapters/fetch.js +227 -0
- package/node_modules/axios/lib/adapters/http.js +1 -1
- package/node_modules/axios/lib/adapters/xhr.js +31 -101
- package/node_modules/axios/lib/core/Axios.js +17 -11
- package/node_modules/axios/lib/core/AxiosHeaders.js +4 -0
- package/node_modules/axios/lib/core/mergeConfig.js +1 -1
- package/node_modules/axios/lib/defaults/index.js +7 -5
- package/node_modules/axios/lib/env/data.js +1 -1
- package/node_modules/axios/lib/helpers/AxiosTransformStream.js +9 -8
- package/node_modules/axios/lib/helpers/composeSignals.js +46 -0
- package/node_modules/axios/lib/helpers/progressEventReducer.js +32 -0
- package/node_modules/axios/lib/helpers/resolveConfig.js +57 -0
- package/node_modules/axios/lib/helpers/throttle.js +5 -3
- package/node_modules/axios/lib/helpers/trackStream.js +55 -0
- package/node_modules/axios/lib/platform/common/utils.js +4 -1
- package/node_modules/axios/lib/utils.js +7 -2
- package/node_modules/axios/package.json +27 -26
- package/node_modules/fast-xml-parser/CHANGELOG.md +14 -0
- package/node_modules/fast-xml-parser/README.md +7 -14
- package/node_modules/fast-xml-parser/package.json +1 -1
- package/node_modules/fast-xml-parser/src/fxp.d.ts +4 -4
- package/node_modules/fast-xml-parser/src/v5/CharsSymbol.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/OptionsBuilder.js +64 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/BaseOutputBuilder.js +71 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsArrBuilder.js +103 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsMinArrBuilder.js +102 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/JsObjBuilder.js +156 -0
- package/node_modules/fast-xml-parser/src/v5/OutputBuilders/ParserOptionsBuilder.js +96 -0
- package/node_modules/fast-xml-parser/src/v5/Report.js +0 -0
- package/node_modules/fast-xml-parser/src/v5/TagPath.js +81 -0
- package/node_modules/fast-xml-parser/src/v5/TagPathMatcher.js +15 -0
- package/node_modules/fast-xml-parser/src/v5/XMLParser.js +85 -0
- package/node_modules/fast-xml-parser/src/v5/Xml2JsParser.js +237 -0
- package/node_modules/fast-xml-parser/src/v5/XmlPartReader.js +212 -0
- package/node_modules/fast-xml-parser/src/v5/XmlSpecialTagsReader.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/BufferSource.js +118 -0
- package/node_modules/fast-xml-parser/src/v5/inputSource/StringSource.js +123 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/EntitiesParser.js +107 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParser.js +23 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/booleanParserExt.js +20 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/currency.js +31 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/join.js +14 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/number.js +16 -0
- package/node_modules/fast-xml-parser/src/v5/valueParsers/trim.js +8 -0
- package/node_modules/fast-xml-parser/src/validator.js +2 -0
- package/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +13 -4
- package/node_modules/follow-redirects/index.js +1 -1
- package/node_modules/follow-redirects/package.json +1 -1
- package/node_modules/hasown/CHANGELOG.md +12 -0
- package/node_modules/hasown/index.d.ts +2 -2
- package/node_modules/hasown/package.json +5 -2
- package/node_modules/hasown/tsconfig.json +3 -46
- package/node_modules/object-is/.eslintrc +1 -1
- package/node_modules/object-is/.nycrc +0 -4
- package/node_modules/object-is/CHANGELOG.md +25 -0
- package/node_modules/object-is/README.md +20 -20
- package/node_modules/object-is/package.json +23 -14
- package/node_modules/protobufjs/LICENSE +39 -39
- package/node_modules/protobufjs/README.md +727 -740
- package/node_modules/protobufjs/dist/light/protobuf.js +6264 -6264
- package/node_modules/protobufjs/dist/light/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/light/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.js +1928 -1928
- package/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js +2 -2
- package/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.js +7978 -7961
- package/node_modules/protobufjs/dist/protobuf.js.map +1 -1
- package/node_modules/protobufjs/dist/protobuf.min.js +3 -3
- package/node_modules/protobufjs/dist/protobuf.min.js.map +1 -1
- package/node_modules/protobufjs/ext/debug/README.md +4 -4
- package/node_modules/protobufjs/ext/debug/index.js +71 -71
- package/node_modules/protobufjs/ext/descriptor/README.md +72 -72
- package/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -191
- package/node_modules/protobufjs/ext/descriptor/index.js +1052 -1052
- package/node_modules/protobufjs/ext/descriptor/test.js +54 -54
- package/node_modules/protobufjs/google/LICENSE +27 -27
- package/node_modules/protobufjs/google/README.md +1 -1
- package/node_modules/protobufjs/google/api/annotations.json +82 -82
- package/node_modules/protobufjs/google/api/annotations.proto +10 -10
- package/node_modules/protobufjs/google/api/http.json +85 -85
- package/node_modules/protobufjs/google/api/http.proto +30 -30
- package/node_modules/protobufjs/google/protobuf/api.json +117 -117
- package/node_modules/protobufjs/google/protobuf/api.proto +33 -33
- package/node_modules/protobufjs/google/protobuf/descriptor.json +738 -738
- package/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -286
- package/node_modules/protobufjs/google/protobuf/source_context.json +19 -19
- package/node_modules/protobufjs/google/protobuf/source_context.proto +7 -7
- package/node_modules/protobufjs/google/protobuf/type.json +201 -201
- package/node_modules/protobufjs/google/protobuf/type.proto +89 -89
- package/node_modules/protobufjs/index.d.ts +2741 -2741
- package/node_modules/protobufjs/index.js +4 -4
- package/node_modules/protobufjs/light.d.ts +2 -2
- package/node_modules/protobufjs/light.js +3 -3
- package/node_modules/protobufjs/minimal.d.ts +2 -2
- package/node_modules/protobufjs/minimal.js +4 -4
- package/node_modules/protobufjs/package.json +111 -111
- package/node_modules/protobufjs/scripts/postinstall.js +32 -32
- package/node_modules/protobufjs/src/common.js +399 -399
- package/node_modules/protobufjs/src/converter.js +301 -301
- package/node_modules/protobufjs/src/decoder.js +129 -129
- package/node_modules/protobufjs/src/encoder.js +100 -100
- package/node_modules/protobufjs/src/enum.js +198 -198
- package/node_modules/protobufjs/src/field.js +377 -377
- package/node_modules/protobufjs/src/index-light.js +104 -104
- package/node_modules/protobufjs/src/index-minimal.js +36 -36
- package/node_modules/protobufjs/src/index.js +12 -12
- package/node_modules/protobufjs/src/mapfield.js +126 -126
- package/node_modules/protobufjs/src/message.js +138 -138
- package/node_modules/protobufjs/src/method.js +160 -160
- package/node_modules/protobufjs/src/namespace.js +433 -433
- package/node_modules/protobufjs/src/object.js +243 -243
- package/node_modules/protobufjs/src/oneof.js +203 -203
- package/node_modules/protobufjs/src/parse.js +889 -872
- package/node_modules/protobufjs/src/reader.js +416 -416
- package/node_modules/protobufjs/src/reader_buffer.js +51 -51
- package/node_modules/protobufjs/src/root.js +368 -368
- package/node_modules/protobufjs/src/roots.js +18 -18
- package/node_modules/protobufjs/src/rpc/service.js +142 -142
- package/node_modules/protobufjs/src/rpc.js +36 -36
- package/node_modules/protobufjs/src/service.js +167 -167
- package/node_modules/protobufjs/src/tokenize.js +416 -416
- package/node_modules/protobufjs/src/type.js +589 -589
- package/node_modules/protobufjs/src/types.js +196 -196
- package/node_modules/protobufjs/src/typescript.jsdoc +15 -15
- package/node_modules/protobufjs/src/util/longbits.js +200 -200
- package/node_modules/protobufjs/src/util/minimal.js +438 -438
- package/node_modules/protobufjs/src/util.js +212 -212
- package/node_modules/protobufjs/src/verifier.js +176 -176
- package/node_modules/protobufjs/src/wrappers.js +102 -102
- package/node_modules/protobufjs/src/writer.js +465 -465
- package/node_modules/protobufjs/src/writer_buffer.js +85 -85
- package/node_modules/protobufjs/tsconfig.json +7 -7
- package/node_modules/set-function-length/CHANGELOG.md +11 -0
- package/node_modules/set-function-length/env.d.ts +9 -6
- package/node_modules/set-function-length/env.js +1 -0
- package/node_modules/set-function-length/index.d.ts +6 -6
- package/node_modules/set-function-length/index.js +1 -3
- package/node_modules/set-function-length/package.json +11 -13
- package/node_modules/set-function-length/tsconfig.json +7 -57
- package/node_modules/uuid/CHANGELOG.md +18 -0
- package/node_modules/uuid/README.md +134 -16
- package/node_modules/uuid/dist/commonjs-browser/index.js +40 -15
- package/node_modules/uuid/dist/commonjs-browser/max.js +7 -0
- package/node_modules/uuid/dist/commonjs-browser/md5.js +30 -53
- package/node_modules/uuid/dist/commonjs-browser/native.js +3 -4
- package/node_modules/uuid/dist/commonjs-browser/nil.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/parse.js +14 -15
- package/node_modules/uuid/dist/commonjs-browser/regex.js +1 -2
- package/node_modules/uuid/dist/commonjs-browser/rng.js +2 -4
- package/node_modules/uuid/dist/commonjs-browser/sha1.js +27 -49
- package/node_modules/uuid/dist/commonjs-browser/stringify.js +10 -16
- package/node_modules/uuid/dist/commonjs-browser/v1.js +73 -49
- package/node_modules/uuid/dist/commonjs-browser/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v3.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v35.js +15 -32
- package/node_modules/uuid/dist/commonjs-browser/v4.js +7 -18
- package/node_modules/uuid/dist/commonjs-browser/v5.js +3 -8
- package/node_modules/uuid/dist/commonjs-browser/v6.js +42 -0
- package/node_modules/uuid/dist/commonjs-browser/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/commonjs-browser/v7.js +152 -0
- package/node_modules/uuid/dist/commonjs-browser/validate.js +2 -7
- package/node_modules/uuid/dist/commonjs-browser/version.js +2 -8
- package/node_modules/uuid/dist/esm-browser/index.js +9 -4
- package/node_modules/uuid/dist/esm-browser/max.js +1 -0
- package/node_modules/uuid/dist/esm-browser/md5.js +29 -50
- package/node_modules/uuid/dist/esm-browser/native.js +1 -1
- package/node_modules/uuid/dist/esm-browser/parse.js +12 -10
- package/node_modules/uuid/dist/esm-browser/regex.js +1 -1
- package/node_modules/uuid/dist/esm-browser/rng.js +3 -4
- package/node_modules/uuid/dist/esm-browser/sha1.js +26 -46
- package/node_modules/uuid/dist/esm-browser/stringify.js +9 -11
- package/node_modules/uuid/dist/esm-browser/v1.js +74 -44
- package/node_modules/uuid/dist/esm-browser/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v3.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v35.js +14 -25
- package/node_modules/uuid/dist/esm-browser/v4.js +5 -9
- package/node_modules/uuid/dist/esm-browser/v5.js +1 -1
- package/node_modules/uuid/dist/esm-browser/v6.js +36 -0
- package/node_modules/uuid/dist/esm-browser/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-browser/v7.js +146 -0
- package/node_modules/uuid/dist/esm-browser/validate.js +0 -2
- package/node_modules/uuid/dist/esm-browser/version.js +0 -3
- package/node_modules/uuid/dist/esm-node/index.js +9 -4
- package/node_modules/uuid/dist/esm-node/max.js +1 -0
- package/node_modules/uuid/dist/esm-node/md5.js +1 -4
- package/node_modules/uuid/dist/esm-node/native.js +1 -1
- package/node_modules/uuid/dist/esm-node/parse.js +11 -9
- package/node_modules/uuid/dist/esm-node/regex.js +1 -1
- package/node_modules/uuid/dist/esm-node/rng.js +1 -3
- package/node_modules/uuid/dist/esm-node/sha1.js +1 -4
- package/node_modules/uuid/dist/esm-node/stringify.js +7 -9
- package/node_modules/uuid/dist/esm-node/v1.js +66 -36
- package/node_modules/uuid/dist/esm-node/v1ToV6.js +20 -0
- package/node_modules/uuid/dist/esm-node/v35.js +8 -19
- package/node_modules/uuid/dist/esm-node/v4.js +4 -8
- package/node_modules/uuid/dist/esm-node/v6.js +32 -0
- package/node_modules/uuid/dist/esm-node/v6ToV1.js +20 -0
- package/node_modules/uuid/dist/esm-node/v7.js +146 -0
- package/node_modules/uuid/dist/esm-node/validate.js +0 -2
- package/node_modules/uuid/dist/esm-node/version.js +0 -3
- package/node_modules/uuid/dist/index.js +40 -15
- package/node_modules/uuid/dist/max.js +7 -0
- package/node_modules/uuid/dist/md5-browser.js +8 -31
- package/node_modules/uuid/dist/md5.js +4 -10
- package/node_modules/uuid/dist/native-browser.js +2 -3
- package/node_modules/uuid/dist/native.js +5 -9
- package/node_modules/uuid/dist/nil.js +1 -2
- package/node_modules/uuid/dist/parse.js +13 -14
- package/node_modules/uuid/dist/regex.js +1 -2
- package/node_modules/uuid/dist/rng-browser.js +1 -3
- package/node_modules/uuid/dist/rng.js +3 -10
- package/node_modules/uuid/dist/sha1-browser.js +1 -23
- package/node_modules/uuid/dist/sha1.js +4 -10
- package/node_modules/uuid/dist/stringify.js +8 -14
- package/node_modules/uuid/dist/uuid-bin.js +12 -22
- package/node_modules/uuid/dist/v1.js +66 -42
- package/node_modules/uuid/dist/v1ToV6.js +26 -0
- package/node_modules/uuid/dist/v3.js +2 -7
- package/node_modules/uuid/dist/v35.js +11 -28
- package/node_modules/uuid/dist/v4.js +6 -17
- package/node_modules/uuid/dist/v5.js +2 -7
- package/node_modules/uuid/dist/v6.js +38 -0
- package/node_modules/uuid/dist/v6ToV1.js +26 -0
- package/node_modules/uuid/dist/v7.js +152 -0
- package/node_modules/uuid/dist/validate.js +2 -7
- package/node_modules/uuid/dist/version.js +2 -8
- package/node_modules/uuid/package.json +41 -34
- package/node_modules/uuid/wrapper.mjs +5 -0
- package/package.json +6 -6
- package/tak-ingest.js +1 -1
- package/tak-registration.js +8 -1
- package/node_modules/@types/node/ts4.8/assert/strict.d.ts +0 -8
- package/node_modules/@types/node/ts4.8/assert.d.ts +0 -996
- package/node_modules/@types/node/ts4.8/async_hooks.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/buffer.d.ts +0 -2363
- package/node_modules/@types/node/ts4.8/child_process.d.ts +0 -1540
- package/node_modules/@types/node/ts4.8/cluster.d.ts +0 -432
- package/node_modules/@types/node/ts4.8/console.d.ts +0 -415
- package/node_modules/@types/node/ts4.8/constants.d.ts +0 -19
- package/node_modules/@types/node/ts4.8/crypto.d.ts +0 -4487
- package/node_modules/@types/node/ts4.8/dgram.d.ts +0 -596
- package/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +0 -545
- package/node_modules/@types/node/ts4.8/dns/promises.d.ts +0 -425
- package/node_modules/@types/node/ts4.8/dns.d.ts +0 -809
- package/node_modules/@types/node/ts4.8/dom-events.d.ts +0 -122
- package/node_modules/@types/node/ts4.8/domain.d.ts +0 -170
- package/node_modules/@types/node/ts4.8/events.d.ts +0 -879
- package/node_modules/@types/node/ts4.8/fs/promises.d.ts +0 -1239
- package/node_modules/@types/node/ts4.8/fs.d.ts +0 -4311
- package/node_modules/@types/node/ts4.8/globals.d.ts +0 -411
- package/node_modules/@types/node/ts4.8/globals.global.d.ts +0 -1
- package/node_modules/@types/node/ts4.8/http.d.ts +0 -1887
- package/node_modules/@types/node/ts4.8/http2.d.ts +0 -2382
- package/node_modules/@types/node/ts4.8/https.d.ts +0 -550
- package/node_modules/@types/node/ts4.8/index.d.ts +0 -88
- package/node_modules/@types/node/ts4.8/inspector.d.ts +0 -2747
- package/node_modules/@types/node/ts4.8/module.d.ts +0 -315
- package/node_modules/@types/node/ts4.8/net.d.ts +0 -954
- package/node_modules/@types/node/ts4.8/os.d.ts +0 -478
- package/node_modules/@types/node/ts4.8/path.d.ts +0 -191
- package/node_modules/@types/node/ts4.8/perf_hooks.d.ts +0 -645
- package/node_modules/@types/node/ts4.8/process.d.ts +0 -1561
- package/node_modules/@types/node/ts4.8/punycode.d.ts +0 -117
- package/node_modules/@types/node/ts4.8/querystring.d.ts +0 -141
- package/node_modules/@types/node/ts4.8/readline/promises.d.ts +0 -150
- package/node_modules/@types/node/ts4.8/readline.d.ts +0 -539
- package/node_modules/@types/node/ts4.8/repl.d.ts +0 -430
- package/node_modules/@types/node/ts4.8/stream/consumers.d.ts +0 -12
- package/node_modules/@types/node/ts4.8/stream/promises.d.ts +0 -83
- package/node_modules/@types/node/ts4.8/stream/web.d.ts +0 -366
- package/node_modules/@types/node/ts4.8/stream.d.ts +0 -1701
- package/node_modules/@types/node/ts4.8/string_decoder.d.ts +0 -67
- package/node_modules/@types/node/ts4.8/test.d.ts +0 -1465
- package/node_modules/@types/node/ts4.8/timers/promises.d.ts +0 -93
- package/node_modules/@types/node/ts4.8/timers.d.ts +0 -240
- package/node_modules/@types/node/ts4.8/tls.d.ts +0 -1210
- package/node_modules/@types/node/ts4.8/trace_events.d.ts +0 -182
- package/node_modules/@types/node/ts4.8/tty.d.ts +0 -208
- package/node_modules/@types/node/ts4.8/url.d.ts +0 -944
- package/node_modules/@types/node/ts4.8/util.d.ts +0 -2183
- package/node_modules/@types/node/ts4.8/v8.d.ts +0 -764
- package/node_modules/@types/node/ts4.8/vm.d.ts +0 -903
- package/node_modules/@types/node/ts4.8/wasi.d.ts +0 -179
- package/node_modules/@types/node/ts4.8/worker_threads.d.ts +0 -691
- package/node_modules/@types/node/ts4.8/zlib.d.ts +0 -517
- package/node_modules/object-is/.eslintignore +0 -1
- package/node_modules/set-function-length/env.d.ts.map +0 -1
- package/node_modules/set-function-length/index.d.ts.map +0 -1
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
*
|
|
27
27
|
* See `message.headers` for details on how duplicate headers are handled.
|
|
28
28
|
*
|
|
29
|
-
* The raw headers as they were received are retained in the `rawHeaders`property, which is an array of `[key, value, key2, value2, ...]`. For
|
|
30
|
-
* example, the previous message header object might have a `rawHeaders`list like the following:
|
|
29
|
+
* The raw headers as they were received are retained in the `rawHeaders` property, which is an array of `[key, value, key2, value2, ...]`. For
|
|
30
|
+
* example, the previous message header object might have a `rawHeaders` list like the following:
|
|
31
31
|
*
|
|
32
32
|
* ```js
|
|
33
33
|
* [ 'ConTent-Length', '123456',
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
* 'Host', 'example.com',
|
|
38
38
|
* 'accepT', '*' ]
|
|
39
39
|
* ```
|
|
40
|
-
* @see [source](https://github.com/nodejs/node/blob/v20.
|
|
40
|
+
* @see [source](https://github.com/nodejs/node/blob/v20.13.1/lib/http.js)
|
|
41
41
|
*/
|
|
42
42
|
declare module "http" {
|
|
43
43
|
import * as stream from "node:stream";
|
|
@@ -198,9 +198,11 @@ declare module "http" {
|
|
|
198
198
|
_defaultAgent?: Agent | undefined;
|
|
199
199
|
agent?: Agent | boolean | undefined;
|
|
200
200
|
auth?: string | null | undefined;
|
|
201
|
-
// https://github.com/nodejs/node/blob/master/lib/_http_client.js#L278
|
|
202
201
|
createConnection?:
|
|
203
|
-
| ((
|
|
202
|
+
| ((
|
|
203
|
+
options: ClientRequestArgs,
|
|
204
|
+
oncreate: (err: Error | null, socket: stream.Duplex) => void,
|
|
205
|
+
) => stream.Duplex | null | undefined)
|
|
204
206
|
| undefined;
|
|
205
207
|
defaultPort?: number | string | undefined;
|
|
206
208
|
family?: number | undefined;
|
|
@@ -280,9 +282,8 @@ declare module "http" {
|
|
|
280
282
|
*/
|
|
281
283
|
insecureHTTPParser?: boolean | undefined;
|
|
282
284
|
/**
|
|
283
|
-
* Optionally overrides the value of
|
|
284
|
-
*
|
|
285
|
-
* the maximum length of request headers in bytes.
|
|
285
|
+
* Optionally overrides the value of `--max-http-header-size` for requests received by
|
|
286
|
+
* this server, i.e. the maximum length of request headers in bytes.
|
|
286
287
|
* @default 16384
|
|
287
288
|
* @since v13.3.0
|
|
288
289
|
*/
|
|
@@ -386,7 +387,7 @@ declare module "http" {
|
|
|
386
387
|
* The number of milliseconds of inactivity a server needs to wait for additional
|
|
387
388
|
* incoming data, after it has finished writing the last response, before a socket
|
|
388
389
|
* will be destroyed. If the server receives new data before the keep-alive
|
|
389
|
-
* timeout has fired, it will reset the regular inactivity timeout, i.e
|
|
390
|
+
* timeout has fired, it will reset the regular inactivity timeout, i.e., `server.timeout`.
|
|
390
391
|
*
|
|
391
392
|
* A value of `0` will disable the keep-alive timeout behavior on incoming
|
|
392
393
|
* connections.
|
|
@@ -573,7 +574,7 @@ declare module "http" {
|
|
|
573
574
|
readonly socket: Socket | null;
|
|
574
575
|
constructor();
|
|
575
576
|
/**
|
|
576
|
-
* Once a socket is associated with the message and is connected
|
|
577
|
+
* Once a socket is associated with the message and is connected, `socket.setTimeout()` will be called with `msecs` as the first parameter.
|
|
577
578
|
* @since v0.9.12
|
|
578
579
|
* @param callback Optional function to be called when a timeout occurs. Same as binding to the `timeout` event.
|
|
579
580
|
*/
|
|
@@ -588,12 +589,12 @@ declare module "http" {
|
|
|
588
589
|
*/
|
|
589
590
|
setHeader(name: string, value: number | string | readonly string[]): this;
|
|
590
591
|
/**
|
|
591
|
-
* Append a single header value
|
|
592
|
+
* Append a single header value to the header object.
|
|
592
593
|
*
|
|
593
|
-
* If the value is an array, this is equivalent
|
|
594
|
+
* If the value is an array, this is equivalent to calling this method multiple
|
|
594
595
|
* times.
|
|
595
596
|
*
|
|
596
|
-
* If there were no previous
|
|
597
|
+
* If there were no previous values for the header, this is equivalent to calling `outgoingMessage.setHeader(name, value)`.
|
|
597
598
|
*
|
|
598
599
|
* Depending of the value of `options.uniqueHeaders` when the client request or the
|
|
599
600
|
* server were created, this will end up in the header being sent multiple times or
|
|
@@ -689,7 +690,7 @@ declare module "http" {
|
|
|
689
690
|
* packet.
|
|
690
691
|
*
|
|
691
692
|
* It is usually desired (it saves a TCP round-trip), but not when the first
|
|
692
|
-
* data is not sent until possibly much later. `outgoingMessage.flushHeaders()`bypasses the optimization and kickstarts the message.
|
|
693
|
+
* data is not sent until possibly much later. `outgoingMessage.flushHeaders()` bypasses the optimization and kickstarts the message.
|
|
693
694
|
* @since v1.6.0
|
|
694
695
|
*/
|
|
695
696
|
flushHeaders(): void;
|
|
@@ -730,7 +731,7 @@ declare module "http" {
|
|
|
730
731
|
*/
|
|
731
732
|
statusMessage: string;
|
|
732
733
|
/**
|
|
733
|
-
* If set to `true`, Node.js will check whether the `Content-Length`header value and the size of the body, in bytes, are equal.
|
|
734
|
+
* If set to `true`, Node.js will check whether the `Content-Length` header value and the size of the body, in bytes, are equal.
|
|
734
735
|
* Mismatching the `Content-Length` header value will result
|
|
735
736
|
* in an `Error` being thrown, identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
|
|
736
737
|
* @since v18.10.0, v16.18.0
|
|
@@ -741,7 +742,7 @@ declare module "http" {
|
|
|
741
742
|
detachSocket(socket: Socket): void;
|
|
742
743
|
/**
|
|
743
744
|
* Sends an HTTP/1.1 100 Continue message to the client, indicating that
|
|
744
|
-
* the request body should be sent. See the `'checkContinue'` event on`Server`.
|
|
745
|
+
* the request body should be sent. See the `'checkContinue'` event on `Server`.
|
|
745
746
|
* @since v0.3.0
|
|
746
747
|
*/
|
|
747
748
|
writeContinue(callback?: () => void): void;
|
|
@@ -861,10 +862,10 @@ declare module "http" {
|
|
|
861
862
|
/**
|
|
862
863
|
* This object is created internally and returned from {@link request}. It
|
|
863
864
|
* represents an _in-progress_ request whose header has already been queued. The
|
|
864
|
-
* header is still mutable using the `setHeader(name, value)
|
|
865
|
+
* header is still mutable using the `setHeader(name, value)`, `getHeader(name)`, `removeHeader(name)` API. The actual header will
|
|
865
866
|
* be sent along with the first data chunk or when calling `request.end()`.
|
|
866
867
|
*
|
|
867
|
-
* To get the response, add a listener for `'response'` to the request object
|
|
868
|
+
* To get the response, add a listener for `'response'` to the request object. `'response'` will be emitted from the request object when the response
|
|
868
869
|
* headers have been received. The `'response'` event is executed with one
|
|
869
870
|
* argument which is an instance of {@link IncomingMessage}.
|
|
870
871
|
*
|
|
@@ -880,10 +881,10 @@ declare module "http" {
|
|
|
880
881
|
* the data is read it will consume memory that can eventually lead to a
|
|
881
882
|
* 'process out of memory' error.
|
|
882
883
|
*
|
|
883
|
-
* For backward compatibility, `res` will only emit `'error'` if there is an`'error'` listener registered.
|
|
884
|
+
* For backward compatibility, `res` will only emit `'error'` if there is an `'error'` listener registered.
|
|
884
885
|
*
|
|
885
886
|
* Set `Content-Length` header to limit the response body size.
|
|
886
|
-
* If `response.strictContentLength` is set to `true`, mismatching the`Content-Length` header value will result in an `Error` being thrown,
|
|
887
|
+
* If `response.strictContentLength` is set to `true`, mismatching the `Content-Length` header value will result in an `Error` being thrown,
|
|
887
888
|
* identified by `code:``'ERR_HTTP_CONTENT_LENGTH_MISMATCH'`.
|
|
888
889
|
*
|
|
889
890
|
* `Content-Length` value should be in bytes, not characters. Use `Buffer.byteLength()` to determine the length of the body in bytes.
|
|
@@ -894,7 +895,7 @@ declare module "http" {
|
|
|
894
895
|
* The `request.aborted` property will be `true` if the request has
|
|
895
896
|
* been aborted.
|
|
896
897
|
* @since v0.11.14
|
|
897
|
-
* @deprecated Since v17.0.0,v16.12.0 - Check `destroyed` instead.
|
|
898
|
+
* @deprecated Since v17.0.0, v16.12.0 - Check `destroyed` instead.
|
|
898
899
|
*/
|
|
899
900
|
aborted: boolean;
|
|
900
901
|
/**
|
|
@@ -1126,7 +1127,7 @@ declare module "http" {
|
|
|
1126
1127
|
* access response
|
|
1127
1128
|
* status, headers, and data.
|
|
1128
1129
|
*
|
|
1129
|
-
* Different from its `socket` value which is a subclass of `stream.Duplex`, the`IncomingMessage` itself extends `stream.Readable` and is created separately to
|
|
1130
|
+
* Different from its `socket` value which is a subclass of `stream.Duplex`, the `IncomingMessage` itself extends `stream.Readable` and is created separately to
|
|
1130
1131
|
* parse and emit the incoming HTTP headers and payload, as the underlying socket
|
|
1131
1132
|
* may be reused multiple times in case of keep-alive.
|
|
1132
1133
|
* @since v0.1.17
|
|
@@ -1145,7 +1146,7 @@ declare module "http" {
|
|
|
1145
1146
|
* client response, the HTTP version of the connected-to server.
|
|
1146
1147
|
* Probably either `'1.1'` or `'1.0'`.
|
|
1147
1148
|
*
|
|
1148
|
-
* Also `message.httpVersionMajor` is the first integer and`message.httpVersionMinor` is the second.
|
|
1149
|
+
* Also `message.httpVersionMajor` is the first integer and `message.httpVersionMinor` is the second.
|
|
1149
1150
|
* @since v0.1.1
|
|
1150
1151
|
*/
|
|
1151
1152
|
httpVersion: string;
|
|
@@ -1210,8 +1211,8 @@ declare module "http" {
|
|
|
1210
1211
|
* Duplicates in raw headers are handled in the following ways, depending on the
|
|
1211
1212
|
* header name:
|
|
1212
1213
|
*
|
|
1213
|
-
* * Duplicates of `age`, `authorization`, `content-length`, `content-type
|
|
1214
|
-
* `max-forwards`, `proxy-authorization`, `referer
|
|
1214
|
+
* * Duplicates of `age`, `authorization`, `content-length`, `content-type`, `etag`, `expires`, `from`, `host`, `if-modified-since`, `if-unmodified-since`, `last-modified`, `location`,
|
|
1215
|
+
* `max-forwards`, `proxy-authorization`, `referer`, `retry-after`, `server`, or `user-agent` are discarded.
|
|
1215
1216
|
* To allow duplicate values of the headers listed above to be joined,
|
|
1216
1217
|
* use the option `joinDuplicateHeaders` in {@link request} and {@link createServer}. See RFC 9110 Section 5.3 for more
|
|
1217
1218
|
* information.
|
|
@@ -1305,29 +1306,32 @@ declare module "http" {
|
|
|
1305
1306
|
* To parse the URL into its parts:
|
|
1306
1307
|
*
|
|
1307
1308
|
* ```js
|
|
1308
|
-
* new URL(
|
|
1309
|
+
* new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
|
|
1309
1310
|
* ```
|
|
1310
1311
|
*
|
|
1311
|
-
* When `request.url` is `'/status?name=ryan'` and `
|
|
1312
|
+
* When `request.url` is `'/status?name=ryan'` and `process.env.HOST` is undefined:
|
|
1312
1313
|
*
|
|
1313
1314
|
* ```console
|
|
1314
1315
|
* $ node
|
|
1315
|
-
* > new URL(
|
|
1316
|
+
* > new URL(`http://${process.env.HOST ?? 'localhost'}${request.url}`);
|
|
1316
1317
|
* URL {
|
|
1317
|
-
* href: 'http://localhost
|
|
1318
|
-
* origin: 'http://localhost
|
|
1318
|
+
* href: 'http://localhost/status?name=ryan',
|
|
1319
|
+
* origin: 'http://localhost',
|
|
1319
1320
|
* protocol: 'http:',
|
|
1320
1321
|
* username: '',
|
|
1321
1322
|
* password: '',
|
|
1322
|
-
* host: 'localhost
|
|
1323
|
+
* host: 'localhost',
|
|
1323
1324
|
* hostname: 'localhost',
|
|
1324
|
-
* port: '
|
|
1325
|
+
* port: '',
|
|
1325
1326
|
* pathname: '/status',
|
|
1326
1327
|
* search: '?name=ryan',
|
|
1327
1328
|
* searchParams: URLSearchParams { 'name' => 'ryan' },
|
|
1328
1329
|
* hash: ''
|
|
1329
1330
|
* }
|
|
1330
1331
|
* ```
|
|
1332
|
+
*
|
|
1333
|
+
* Ensure that you set `process.env.HOST` to the server's host name, or consider replacing this part entirely. If using `req.headers.host`, ensure proper
|
|
1334
|
+
* validation is used, as clients may specify a custom `Host` header.
|
|
1331
1335
|
* @since v0.1.90
|
|
1332
1336
|
*/
|
|
1333
1337
|
url?: string | undefined;
|
|
@@ -1346,7 +1350,7 @@ declare module "http" {
|
|
|
1346
1350
|
*/
|
|
1347
1351
|
statusMessage?: string | undefined;
|
|
1348
1352
|
/**
|
|
1349
|
-
* Calls `destroy()` on the socket that received the `IncomingMessage`. If `error`is provided, an `'error'` event is emitted on the socket and `error` is passed
|
|
1353
|
+
* Calls `destroy()` on the socket that received the `IncomingMessage`. If `error` is provided, an `'error'` event is emitted on the socket and `error` is passed
|
|
1350
1354
|
* as an argument to any listeners on the event.
|
|
1351
1355
|
* @since v0.3.0
|
|
1352
1356
|
*/
|
|
@@ -1390,7 +1394,7 @@ declare module "http" {
|
|
|
1390
1394
|
* for a given host and port, reusing a single socket connection for each
|
|
1391
1395
|
* until the queue is empty, at which time the socket is either destroyed
|
|
1392
1396
|
* or put into a pool where it is kept to be used again for requests to the
|
|
1393
|
-
* same host and port. Whether it is destroyed or pooled depends on the`keepAlive` `option`.
|
|
1397
|
+
* same host and port. Whether it is destroyed or pooled depends on the `keepAlive` `option`.
|
|
1394
1398
|
*
|
|
1395
1399
|
* Pooled connections have TCP Keep-Alive enabled for them, but servers may
|
|
1396
1400
|
* still close idle connections, in which case they will be removed from the
|
|
@@ -1421,7 +1425,7 @@ declare module "http" {
|
|
|
1421
1425
|
* });
|
|
1422
1426
|
* ```
|
|
1423
1427
|
*
|
|
1424
|
-
* An agent may also be used for an individual request. By providing`{agent: false}` as an option to the `http.get()` or `http.request()`functions, a one-time use `Agent` with default options
|
|
1428
|
+
* An agent may also be used for an individual request. By providing `{agent: false}` as an option to the `http.get()` or `http.request()` functions, a one-time use `Agent` with default options
|
|
1425
1429
|
* will be used
|
|
1426
1430
|
* for the client connection.
|
|
1427
1431
|
*
|
|
@@ -1437,6 +1441,17 @@ declare module "http" {
|
|
|
1437
1441
|
* // Do stuff with response
|
|
1438
1442
|
* });
|
|
1439
1443
|
* ```
|
|
1444
|
+
*
|
|
1445
|
+
* `options` in [`socket.connect()`](https://nodejs.org/docs/latest-v20.x/api/net.html#socketconnectoptions-connectlistener) are also supported.
|
|
1446
|
+
*
|
|
1447
|
+
* To configure any of them, a custom {@link Agent} instance must be created.
|
|
1448
|
+
*
|
|
1449
|
+
* ```js
|
|
1450
|
+
* const http = require('node:http');
|
|
1451
|
+
* const keepAliveAgent = new http.Agent({ keepAlive: true });
|
|
1452
|
+
* options.agent = keepAliveAgent;
|
|
1453
|
+
* http.request(options, onResponseCallback)
|
|
1454
|
+
* ```
|
|
1440
1455
|
* @since v0.3.4
|
|
1441
1456
|
*/
|
|
1442
1457
|
class Agent extends EventEmitter {
|
|
@@ -1559,7 +1574,7 @@ declare module "http" {
|
|
|
1559
1574
|
* `url` can be a string or a `URL` object. If `url` is a
|
|
1560
1575
|
* string, it is automatically parsed with `new URL()`. If it is a `URL` object, it will be automatically converted to an ordinary `options` object.
|
|
1561
1576
|
*
|
|
1562
|
-
* If both `url` and `options` are specified, the objects are merged, with the`options` properties taking precedence.
|
|
1577
|
+
* If both `url` and `options` are specified, the objects are merged, with the `options` properties taking precedence.
|
|
1563
1578
|
*
|
|
1564
1579
|
* The optional `callback` parameter will be added as a one-time listener for
|
|
1565
1580
|
* the `'response'` event.
|
|
@@ -1659,7 +1674,7 @@ declare module "http" {
|
|
|
1659
1674
|
* the following events will be emitted in the following order:
|
|
1660
1675
|
*
|
|
1661
1676
|
* * `'socket'`
|
|
1662
|
-
* * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
|
|
1677
|
+
* * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
|
|
1663
1678
|
* * `'close'`
|
|
1664
1679
|
*
|
|
1665
1680
|
* In the case of a premature connection close after the response is received,
|
|
@@ -1670,15 +1685,15 @@ declare module "http" {
|
|
|
1670
1685
|
* * `'data'` any number of times, on the `res` object
|
|
1671
1686
|
* * (connection closed here)
|
|
1672
1687
|
* * `'aborted'` on the `res` object
|
|
1673
|
-
* * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`
|
|
1674
1688
|
* * `'close'`
|
|
1689
|
+
* * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`
|
|
1675
1690
|
* * `'close'` on the `res` object
|
|
1676
1691
|
*
|
|
1677
1692
|
* If `req.destroy()` is called before a socket is assigned, the following
|
|
1678
1693
|
* events will be emitted in the following order:
|
|
1679
1694
|
*
|
|
1680
1695
|
* * (`req.destroy()` called here)
|
|
1681
|
-
* * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`, or the error with which `req.destroy()` was called
|
|
1696
|
+
* * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
|
|
1682
1697
|
* * `'close'`
|
|
1683
1698
|
*
|
|
1684
1699
|
* If `req.destroy()` is called before the connection succeeds, the following
|
|
@@ -1686,7 +1701,7 @@ declare module "http" {
|
|
|
1686
1701
|
*
|
|
1687
1702
|
* * `'socket'`
|
|
1688
1703
|
* * (`req.destroy()` called here)
|
|
1689
|
-
* * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`, or the error with which `req.destroy()` was called
|
|
1704
|
+
* * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
|
|
1690
1705
|
* * `'close'`
|
|
1691
1706
|
*
|
|
1692
1707
|
* If `req.destroy()` is called after the response is received, the following
|
|
@@ -1697,8 +1712,8 @@ declare module "http" {
|
|
|
1697
1712
|
* * `'data'` any number of times, on the `res` object
|
|
1698
1713
|
* * (`req.destroy()` called here)
|
|
1699
1714
|
* * `'aborted'` on the `res` object
|
|
1700
|
-
* * `'error'` on the `res` object with an error with message `'Error: aborted'`and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
|
|
1701
1715
|
* * `'close'`
|
|
1716
|
+
* * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`, or the error with which `req.destroy()` was called
|
|
1702
1717
|
* * `'close'` on the `res` object
|
|
1703
1718
|
*
|
|
1704
1719
|
* If `req.abort()` is called before a socket is assigned, the following
|
|
@@ -1714,7 +1729,7 @@ declare module "http" {
|
|
|
1714
1729
|
* * `'socket'`
|
|
1715
1730
|
* * (`req.abort()` called here)
|
|
1716
1731
|
* * `'abort'`
|
|
1717
|
-
* * `'error'` with an error with message `'Error: socket hang up'` and code`'ECONNRESET'`
|
|
1732
|
+
* * `'error'` with an error with message `'Error: socket hang up'` and code `'ECONNRESET'`
|
|
1718
1733
|
* * `'close'`
|
|
1719
1734
|
*
|
|
1720
1735
|
* If `req.abort()` is called after the response is received, the following
|
|
@@ -1726,16 +1741,16 @@ declare module "http" {
|
|
|
1726
1741
|
* * (`req.abort()` called here)
|
|
1727
1742
|
* * `'abort'`
|
|
1728
1743
|
* * `'aborted'` on the `res` object
|
|
1729
|
-
* * `'error'` on the `res` object with an error with message`'Error: aborted'` and code `'ECONNRESET'`.
|
|
1744
|
+
* * `'error'` on the `res` object with an error with message `'Error: aborted'` and code `'ECONNRESET'`.
|
|
1730
1745
|
* * `'close'`
|
|
1731
1746
|
* * `'close'` on the `res` object
|
|
1732
1747
|
*
|
|
1733
1748
|
* Setting the `timeout` option or using the `setTimeout()` function will
|
|
1734
1749
|
* not abort the request or do anything besides add a `'timeout'` event.
|
|
1735
1750
|
*
|
|
1736
|
-
* Passing an `AbortSignal` and then calling `abort()` on the corresponding`AbortController` will behave the same way as calling `.destroy()` on the
|
|
1751
|
+
* Passing an `AbortSignal` and then calling `abort()` on the corresponding `AbortController` will behave the same way as calling `.destroy()` on the
|
|
1737
1752
|
* request. Specifically, the `'error'` event will be emitted with an error with
|
|
1738
|
-
* the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'`and the `cause`, if one was provided.
|
|
1753
|
+
* the message `'AbortError: The operation was aborted'`, the code `'ABORT_ERR'` and the `cause`, if one was provided.
|
|
1739
1754
|
* @since v0.3.6
|
|
1740
1755
|
*/
|
|
1741
1756
|
function request(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
@@ -1746,7 +1761,7 @@ declare module "http" {
|
|
|
1746
1761
|
): ClientRequest;
|
|
1747
1762
|
/**
|
|
1748
1763
|
* Since most requests are GET requests without bodies, Node.js provides this
|
|
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
|
|
1764
|
+
* 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
1765
|
* consume the response
|
|
1751
1766
|
* data for reasons stated in {@link ClientRequest} section.
|
|
1752
1767
|
*
|
|
@@ -1807,7 +1822,7 @@ declare module "http" {
|
|
|
1807
1822
|
function get(options: RequestOptions | string | URL, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
1808
1823
|
function get(url: string | URL, options: RequestOptions, callback?: (res: IncomingMessage) => void): ClientRequest;
|
|
1809
1824
|
/**
|
|
1810
|
-
* Performs the low-level validations on the provided `name` that are done when`res.setHeader(name, value)` is called.
|
|
1825
|
+
* Performs the low-level validations on the provided `name` that are done when `res.setHeader(name, value)` is called.
|
|
1811
1826
|
*
|
|
1812
1827
|
* Passing illegal value as `name` will result in a `TypeError` being thrown,
|
|
1813
1828
|
* identified by `code: 'ERR_INVALID_HTTP_TOKEN'`.
|
|
@@ -1833,7 +1848,7 @@ declare module "http" {
|
|
|
1833
1848
|
*/
|
|
1834
1849
|
function validateHeaderName(name: string): void;
|
|
1835
1850
|
/**
|
|
1836
|
-
* Performs the low-level validations on the provided `value` that are done when`res.setHeader(name, value)` is called.
|
|
1851
|
+
* Performs the low-level validations on the provided `value` that are done when `res.setHeader(name, value)` is called.
|
|
1837
1852
|
*
|
|
1838
1853
|
* Passing illegal value as `value` will result in a `TypeError` being thrown.
|
|
1839
1854
|
*
|
|
@@ -1875,6 +1890,12 @@ declare module "http" {
|
|
|
1875
1890
|
* @param [max=1000]
|
|
1876
1891
|
*/
|
|
1877
1892
|
function setMaxIdleHTTPParsers(max: number): void;
|
|
1893
|
+
/**
|
|
1894
|
+
* Global instance of `Agent` which is used as the default for all HTTP client
|
|
1895
|
+
* requests. Diverges from a default `Agent` configuration by having `keepAlive`
|
|
1896
|
+
* enabled and a `timeout` of 5 seconds.
|
|
1897
|
+
* @since v0.5.9
|
|
1898
|
+
*/
|
|
1878
1899
|
let globalAgent: Agent;
|
|
1879
1900
|
/**
|
|
1880
1901
|
* Read-only property specifying the maximum allowed size of HTTP headers in bytes.
|