@psnext/slingcli 3.1.20260904-1 → 3.3.20260911-1
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/@aws-sdk/core/dist-cjs/submodules/util/index.js +5 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/hasOwn.js +3 -0
- package/node_modules/@aws-sdk/core/dist-es/submodules/util/index.js +1 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/hasOwn.d.ts +4 -0
- package/node_modules/@aws-sdk/core/dist-types/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/hasOwn.d.ts +1 -0
- package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/util/index.d.ts +1 -0
- package/node_modules/@aws-sdk/core/package.json +1 -1
- package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
- package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
- package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
- package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
- package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
- package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
- package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
- package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/chunks/{chunk-PBNSMEG7.js → chunk-VDBOM5UG.js} +9 -9
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/cli.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/index.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/dist/bundle/rpc-entry.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Client.md +25 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +3 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/EventSource.md +4 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Interceptors.md +7 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +7 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/api/readable.js +33 -43
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/cache/memory-cache-store.js +2 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/connect.js +16 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/core/symbols.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/agent.js +7 -2
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/balanced-pool.js +7 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h1.js +9 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client-h2.js +221 -12
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/client.js +76 -30
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher-base.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher.js +15 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/dispatcher1-wrapper.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +37 -8
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/proxy-agent.js +18 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/retry-agent.js +3 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/round-robin-pool.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +106 -22
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/cache-handler.js +29 -5
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/decorator-handler.js +7 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/deduplication-handler.js +12 -6
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/redirect-handler.js +21 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/handler/retry-handler.js +155 -32
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/cache.js +65 -9
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/decompress.js +115 -13
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/deduplicate.js +5 -4
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dns.js +7 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-agent.js +13 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/mock/mock-utils.js +217 -27
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/util/cache.js +43 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/cookies/parse.js +150 -147
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource-stream.js +28 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/eventsource/eventsource.js +13 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/index.js +6 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/request.js +2 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/fetch/util.js +6 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/webidl/index.js +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/lib/web/websocket/websocket.js +22 -0
- package/node_modules/@earendil-works/pi-coding-agent/node_modules/undici/package.json +3 -3
- package/node_modules/@earendil-works/pi-coding-agent/npm-shrinkwrap.json +4 -4
- package/node_modules/@earendil-works/pi-coding-agent/package.json +1 -1
- package/node_modules/@smithy/core/dist-cjs/submodules/errors/index.js +20 -0
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +11 -10
- package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +11 -10
- package/node_modules/@smithy/core/dist-es/submodules/errors/errors.js +18 -0
- package/node_modules/@smithy/core/dist-es/submodules/errors/index.js +1 -0
- package/node_modules/@smithy/core/dist-es/submodules/retry/service-error-classification/service-error-classification.js +11 -10
- package/node_modules/@smithy/core/dist-types/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/errors.d.ts +44 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/errors/index.d.ts +1 -0
- package/node_modules/@smithy/core/dist-types/ts3.4/submodules/retry/service-error-classification/service-error-classification.d.ts +4 -0
- package/node_modules/@smithy/core/errors.d.ts +5 -0
- package/node_modules/@smithy/core/errors.js +5 -0
- package/node_modules/@smithy/core/package.json +11 -2
- package/node_modules/@types/node/README.md +3 -3
- package/node_modules/@types/node/assert/strict.d.ts +56 -13
- package/node_modules/@types/node/assert.d.ts +190 -189
- package/node_modules/@types/node/async_hooks.d.ts +43 -151
- package/node_modules/@types/node/buffer.buffer.d.ts +13 -12
- package/node_modules/@types/node/buffer.d.ts +237 -102
- package/node_modules/@types/node/child_process.d.ts +154 -39
- package/node_modules/@types/node/cluster.d.ts +384 -238
- package/node_modules/@types/node/compatibility/disposable.d.ts +14 -0
- package/node_modules/@types/node/compatibility/index.d.ts +9 -0
- package/node_modules/@types/node/compatibility/indexable.d.ts +20 -0
- package/node_modules/@types/node/compatibility/iterators.d.ts +20 -0
- package/node_modules/@types/node/console.d.ts +404 -45
- package/node_modules/@types/node/constants.d.ts +10 -3
- package/node_modules/@types/node/crypto.d.ts +1600 -1007
- package/node_modules/@types/node/dgram.d.ts +81 -133
- package/node_modules/@types/node/diagnostics_channel.d.ts +59 -277
- package/node_modules/@types/node/dns/promises.d.ts +15 -9
- package/node_modules/@types/node/dns.d.ts +183 -136
- package/node_modules/@types/node/domain.d.ts +32 -12
- package/node_modules/@types/node/events.d.ts +696 -728
- package/node_modules/@types/node/fs/promises.d.ts +85 -256
- package/node_modules/@types/node/fs.d.ts +525 -865
- package/node_modules/@types/node/globals.d.ts +34 -12
- package/node_modules/@types/node/globals.typedarray.d.ts +0 -63
- package/node_modules/@types/node/http.d.ts +311 -432
- package/node_modules/@types/node/http2.d.ts +891 -545
- package/node_modules/@types/node/https.d.ts +243 -64
- package/node_modules/@types/node/index.d.ts +7 -25
- package/node_modules/@types/node/inspector.d.ts +58 -70
- package/node_modules/@types/node/inspector.generated.d.ts +411 -765
- package/node_modules/@types/node/module.d.ts +219 -54
- package/node_modules/@types/node/net.d.ts +222 -208
- package/node_modules/@types/node/os.d.ts +49 -41
- package/node_modules/@types/node/package.json +3 -13
- package/node_modules/@types/node/path.d.ts +141 -119
- package/node_modules/@types/node/perf_hooks.d.ts +673 -310
- package/node_modules/@types/node/process.d.ts +205 -389
- package/node_modules/@types/node/punycode.d.ts +31 -3
- package/node_modules/@types/node/querystring.d.ts +16 -3
- package/node_modules/@types/node/readline/promises.d.ts +6 -3
- package/node_modules/@types/node/readline.d.ts +152 -66
- package/node_modules/@types/node/repl.d.ts +109 -101
- package/node_modules/@types/node/sea.d.ts +116 -1
- package/node_modules/@types/node/sqlite.d.ts +68 -486
- package/node_modules/@types/node/stream/consumers.d.ts +15 -91
- package/node_modules/@types/node/stream/promises.d.ts +15 -136
- package/node_modules/@types/node/stream/web.d.ts +456 -179
- package/node_modules/@types/node/stream.d.ts +491 -603
- package/node_modules/@types/node/string_decoder.d.ts +43 -3
- package/node_modules/@types/node/test.d.ts +292 -513
- package/node_modules/@types/node/timers/promises.d.ts +18 -3
- package/node_modules/@types/node/timers.d.ts +141 -3
- package/node_modules/@types/node/tls.d.ts +242 -140
- package/node_modules/@types/node/trace_events.d.ts +97 -3
- package/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +8 -7
- package/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +0 -2
- package/node_modules/@types/node/ts5.6/index.d.ts +6 -26
- package/node_modules/@types/node/tty.d.ts +43 -61
- package/node_modules/@types/node/url.d.ts +584 -156
- package/node_modules/@types/node/util.d.ts +1110 -181
- package/node_modules/@types/node/v8.d.ts +36 -175
- package/node_modules/@types/node/vm.d.ts +209 -292
- package/node_modules/@types/node/wasi.d.ts +74 -24
- package/node_modules/@types/node/web-globals/abortcontroller.d.ts +2 -27
- package/node_modules/@types/node/web-globals/domexception.d.ts +0 -15
- package/node_modules/@types/node/web-globals/events.d.ts +0 -9
- package/node_modules/@types/node/web-globals/fetch.d.ts +0 -14
- package/node_modules/@types/node/web-globals/navigator.d.ts +0 -3
- package/node_modules/@types/node/web-globals/streams.d.ts +0 -93
- package/node_modules/@types/node/worker_threads.d.ts +407 -257
- package/node_modules/@types/node/zlib.d.ts +165 -7
- package/node_modules/hono/dist/cjs/client/client.js +4 -4
- package/node_modules/hono/dist/cjs/hono-base.js +7 -6
- package/node_modules/hono/dist/cjs/jsx/base.js +18 -1
- package/node_modules/hono/dist/cjs/jsx/components.js +25 -26
- package/node_modules/hono/dist/cjs/jsx/context.js +5 -5
- package/node_modules/hono/dist/cjs/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/cjs/jsx/intrinsic-element/components.js +2 -2
- package/node_modules/hono/dist/cjs/jsx/streaming.js +4 -5
- package/node_modules/hono/dist/client/client.js +4 -4
- package/node_modules/hono/dist/hono-base.js +7 -6
- package/node_modules/hono/dist/jsx/base.js +15 -1
- package/node_modules/hono/dist/jsx/components.js +26 -27
- package/node_modules/hono/dist/jsx/context.js +6 -6
- package/node_modules/hono/dist/jsx/dom/server.js +5 -1
- package/node_modules/hono/dist/jsx/intrinsic-element/components.js +3 -3
- package/node_modules/hono/dist/jsx/streaming.js +5 -6
- package/node_modules/hono/dist/types/context.d.ts +2 -2
- package/node_modules/hono/dist/types/jsx/base.d.ts +3 -0
- package/node_modules/hono/package.json +2 -2
- package/node_modules/jose/dist/types/index.d.ts +1 -2
- package/node_modules/jose/dist/types/jwe/compact/decrypt.d.ts +7 -11
- package/node_modules/jose/dist/types/jwe/compact/encrypt.d.ts +13 -16
- package/node_modules/jose/dist/types/jwe/flattened/decrypt.d.ts +7 -11
- package/node_modules/jose/dist/types/jwe/flattened/encrypt.d.ts +16 -19
- package/node_modules/jose/dist/types/jwe/general/decrypt.d.ts +10 -16
- package/node_modules/jose/dist/types/jwe/general/encrypt.d.ts +18 -21
- package/node_modules/jose/dist/types/jwk/embedded.d.ts +3 -1
- package/node_modules/jose/dist/types/jwk/thumbprint.d.ts +4 -6
- package/node_modules/jose/dist/types/jwks/local.d.ts +5 -4
- package/node_modules/jose/dist/types/jwks/remote.d.ts +20 -21
- package/node_modules/jose/dist/types/jws/compact/sign.d.ts +4 -4
- package/node_modules/jose/dist/types/jws/compact/verify.d.ts +8 -11
- package/node_modules/jose/dist/types/jws/flattened/sign.d.ts +5 -5
- package/node_modules/jose/dist/types/jws/flattened/verify.d.ts +8 -11
- package/node_modules/jose/dist/types/jws/general/sign.d.ts +10 -14
- package/node_modules/jose/dist/types/jws/general/verify.d.ts +11 -17
- package/node_modules/jose/dist/types/jwt/decrypt.d.ts +14 -11
- package/node_modules/jose/dist/types/jwt/encrypt.d.ts +24 -22
- package/node_modules/jose/dist/types/jwt/sign.d.ts +3 -7
- package/node_modules/jose/dist/types/jwt/unsecured.d.ts +2 -6
- package/node_modules/jose/dist/types/jwt/verify.d.ts +13 -6
- package/node_modules/jose/dist/types/key/export.d.ts +6 -6
- package/node_modules/jose/dist/types/key/generate_key_pair.d.ts +9 -14
- package/node_modules/jose/dist/types/key/generate_secret.d.ts +10 -10
- package/node_modules/jose/dist/types/key/import.d.ts +19 -18
- package/node_modules/jose/dist/types/types.d.ts +152 -247
- package/node_modules/jose/dist/types/util/base64url.d.ts +7 -7
- package/node_modules/jose/dist/types/util/decode_jwt.d.ts +6 -1
- package/node_modules/jose/dist/types/util/decode_protected_header.d.ts +4 -3
- package/node_modules/jose/dist/types/util/errors.d.ts +29 -40
- package/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +1 -2
- package/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +9 -26
- package/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +3 -3
- package/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +11 -30
- package/node_modules/jose/dist/webapi/jwe/general/decrypt.js +6 -6
- package/node_modules/jose/dist/webapi/jwe/general/encrypt.js +33 -57
- package/node_modules/jose/dist/webapi/jwk/embedded.js +3 -4
- package/node_modules/jose/dist/webapi/jwk/thumbprint.js +3 -6
- package/node_modules/jose/dist/webapi/jwks/local.js +16 -10
- package/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
- package/node_modules/jose/dist/webapi/jws/compact/sign.js +2 -4
- package/node_modules/jose/dist/webapi/jws/compact/verify.js +2 -2
- package/node_modules/jose/dist/webapi/jws/flattened/sign.js +8 -15
- package/node_modules/jose/dist/webapi/jws/flattened/verify.js +4 -14
- package/node_modules/jose/dist/webapi/jws/general/sign.js +4 -11
- package/node_modules/jose/dist/webapi/jws/general/verify.js +5 -7
- package/node_modules/jose/dist/webapi/jwt/decrypt.js +2 -3
- package/node_modules/jose/dist/webapi/jwt/encrypt.js +11 -25
- package/node_modules/jose/dist/webapi/jwt/sign.js +1 -1
- package/node_modules/jose/dist/webapi/jwt/unsecured.js +1 -2
- package/node_modules/jose/dist/webapi/jwt/verify.js +4 -4
- package/node_modules/jose/dist/webapi/key/export.js +12 -16
- package/node_modules/jose/dist/webapi/key/generate_key_pair.js +4 -13
- package/node_modules/jose/dist/webapi/key/generate_secret.js +1 -1
- package/node_modules/jose/dist/webapi/key/import.js +5 -9
- package/node_modules/jose/dist/webapi/lib/asn1.js +2 -4
- package/node_modules/jose/dist/webapi/lib/buffer_utils.js +35 -0
- package/node_modules/jose/dist/webapi/lib/content_encryption.js +21 -29
- package/node_modules/jose/dist/webapi/lib/deflate.js +9 -19
- package/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +0 -4
- package/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +21 -54
- package/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +26 -59
- package/node_modules/jose/dist/webapi/lib/jws_sign.js +29 -43
- package/node_modules/jose/dist/webapi/lib/jws_verify.js +37 -45
- package/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
- package/node_modules/jose/dist/webapi/lib/key.js +119 -59
- package/node_modules/jose/dist/webapi/lib/key_management.js +45 -80
- package/node_modules/jose/dist/webapi/lib/{options.js → validate.js} +64 -3
- package/node_modules/jose/dist/webapi/util/base64url.js +5 -19
- package/node_modules/jose/dist/webapi/util/decode_jwt.js +1 -1
- package/node_modules/jose/dist/webapi/util/decode_protected_header.js +1 -1
- package/node_modules/jose/package.json +1 -1
- package/node_modules/undici/lib/dispatcher/balanced-pool.js +4 -2
- package/node_modules/undici/lib/dispatcher/client-h1.js +12 -4
- package/node_modules/undici/lib/dispatcher/client-h2.js +70 -14
- package/node_modules/undici/lib/dispatcher/client.js +6 -2
- package/node_modules/undici/lib/handler/cache-handler.js +21 -5
- package/node_modules/undici/lib/handler/retry-handler.js +42 -7
- package/node_modules/undici/lib/interceptor/cache.js +20 -1
- package/node_modules/undici/lib/interceptor/decompress.js +146 -14
- package/node_modules/undici/lib/interceptor/dump.js +10 -23
- package/node_modules/undici/lib/web/eventsource/eventsource-stream.js +245 -150
- package/node_modules/undici/lib/web/websocket/connection.js +1 -1
- package/node_modules/undici/lib/web/websocket/permessage-deflate.js +5 -0
- package/node_modules/undici/lib/web/websocket/stream/websocketstream.js +8 -10
- package/node_modules/undici/package.json +1 -1
- package/node_modules/undici/types/interceptors.d.ts +2 -0
- package/node_modules/undici-types/agent.d.ts +13 -12
- package/node_modules/undici-types/api.d.ts +26 -26
- package/node_modules/undici-types/balanced-pool.d.ts +12 -13
- package/node_modules/undici-types/client.d.ts +34 -55
- package/node_modules/undici-types/connector.d.ts +2 -4
- package/node_modules/undici-types/cookies.d.ts +0 -2
- package/node_modules/undici-types/diagnostics-channel.d.ts +10 -18
- package/node_modules/undici-types/dispatcher.d.ts +137 -134
- package/node_modules/undici-types/env-http-proxy-agent.d.ts +3 -4
- package/node_modules/undici-types/errors.d.ts +54 -82
- package/node_modules/undici-types/eventsource.d.ts +4 -9
- package/node_modules/undici-types/fetch.d.ts +24 -46
- 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 +7 -7
- package/node_modules/undici-types/global-dispatcher.d.ts +4 -4
- package/node_modules/undici-types/global-origin.d.ts +5 -5
- package/node_modules/undici-types/handlers.d.ts +9 -8
- package/node_modules/undici-types/header.d.ts +1 -162
- package/node_modules/undici-types/index.d.ts +47 -69
- package/node_modules/undici-types/interceptors.d.ts +9 -72
- package/node_modules/undici-types/mock-agent.d.ts +18 -36
- package/node_modules/undici-types/mock-client.d.ts +4 -6
- package/node_modules/undici-types/mock-errors.d.ts +3 -3
- package/node_modules/undici-types/mock-interceptor.d.ts +20 -21
- package/node_modules/undici-types/mock-pool.d.ts +4 -6
- package/node_modules/undici-types/package.json +1 -1
- package/node_modules/undici-types/patch.d.ts +4 -0
- package/node_modules/undici-types/pool-stats.d.ts +8 -8
- package/node_modules/undici-types/pool.d.ts +14 -14
- package/node_modules/undici-types/proxy-agent.d.ts +6 -7
- package/node_modules/undici-types/readable.d.ts +16 -19
- package/node_modules/undici-types/retry-agent.d.ts +1 -1
- package/node_modules/undici-types/retry-handler.d.ts +10 -19
- package/node_modules/undici-types/util.d.ts +3 -3
- package/node_modules/undici-types/webidl.d.ts +30 -148
- package/node_modules/undici-types/websocket.d.ts +10 -48
- package/node_modules/zod/compile.cjs +19 -0
- package/node_modules/zod/index.cjs +19 -0
- package/node_modules/zod/locales/index.cjs +19 -0
- package/node_modules/zod/mini/index.cjs +19 -0
- package/node_modules/zod/package.json +8 -7
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +1 -1
- package/node_modules/zod/src/v4/classic/checks.ts +0 -1
- package/node_modules/zod/src/v4/classic/external.ts +2 -0
- package/node_modules/zod/src/v4/classic/from-json-schema.ts +248 -25
- package/node_modules/zod/src/v4/classic/schemas.ts +255 -164
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +59 -9
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +6 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +2 -2
- package/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +274 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +112 -6
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +9 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +130 -1
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +4 -0
- package/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +157 -0
- package/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +18 -2
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +27 -7
- package/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +88 -56
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +56 -0
- package/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +3 -2
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +70 -0
- package/node_modules/zod/src/v4/classic/tests/properties.test.ts +225 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +46 -1
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +19 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +25 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +33 -1
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +147 -3
- package/node_modules/zod/src/v4/classic/tests/validate.test.ts +569 -0
- package/node_modules/zod/src/v4/core/api.ts +30 -6
- package/node_modules/zod/src/v4/core/checks.ts +1 -101
- package/node_modules/zod/src/v4/core/compile.ts +202 -88
- package/node_modules/zod/src/v4/core/doc.ts +6 -2
- package/node_modules/zod/src/v4/core/errors.ts +3 -6
- package/node_modules/zod/src/v4/core/json-schema-generator.ts +2 -2
- package/node_modules/zod/src/v4/core/json-schema-processors.ts +226 -68
- package/node_modules/zod/src/v4/core/memoizer.ts +78 -28
- package/node_modules/zod/src/v4/core/parse.ts +37 -16
- package/node_modules/zod/src/v4/core/regexes.ts +10 -4
- package/node_modules/zod/src/v4/core/schemas.ts +359 -122
- package/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/node_modules/zod/src/v4/core/tests/compile.test.ts +222 -2
- package/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +10 -8
- package/node_modules/zod/src/v4/core/util.ts +222 -147
- package/node_modules/zod/src/v4/core/versions.ts +2 -2
- package/node_modules/zod/src/v4/core/visit.ts +11 -0
- package/node_modules/zod/src/v4/locales/ar.ts +1 -0
- package/node_modules/zod/src/v4/locales/az.ts +1 -0
- package/node_modules/zod/src/v4/locales/be.ts +1 -0
- package/node_modules/zod/src/v4/locales/bg.ts +1 -0
- package/node_modules/zod/src/v4/locales/bn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ca.ts +1 -0
- package/node_modules/zod/src/v4/locales/ckb.ts +1 -0
- package/node_modules/zod/src/v4/locales/cs.ts +1 -0
- package/node_modules/zod/src/v4/locales/da.ts +1 -0
- package/node_modules/zod/src/v4/locales/de.ts +1 -0
- package/node_modules/zod/src/v4/locales/el.ts +1 -0
- package/node_modules/zod/src/v4/locales/en.ts +1 -0
- package/node_modules/zod/src/v4/locales/eo.ts +1 -0
- package/node_modules/zod/src/v4/locales/es.ts +1 -0
- package/node_modules/zod/src/v4/locales/fa.ts +1 -0
- package/node_modules/zod/src/v4/locales/fi.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +1 -0
- package/node_modules/zod/src/v4/locales/fr.ts +1 -0
- package/node_modules/zod/src/v4/locales/gu.ts +1 -0
- package/node_modules/zod/src/v4/locales/he.ts +1 -0
- package/node_modules/zod/src/v4/locales/hi.ts +1 -0
- package/node_modules/zod/src/v4/locales/hr.ts +1 -0
- package/node_modules/zod/src/v4/locales/hu.ts +1 -0
- package/node_modules/zod/src/v4/locales/hy.ts +1 -0
- package/node_modules/zod/src/v4/locales/id.ts +1 -0
- package/node_modules/zod/src/v4/locales/index.ts +1 -0
- package/node_modules/zod/src/v4/locales/is.ts +1 -0
- package/node_modules/zod/src/v4/locales/it.ts +1 -0
- package/node_modules/zod/src/v4/locales/ja.ts +1 -0
- package/node_modules/zod/src/v4/locales/ka.ts +1 -0
- package/node_modules/zod/src/v4/locales/km.ts +1 -0
- package/node_modules/zod/src/v4/locales/kn.ts +1 -0
- package/node_modules/zod/src/v4/locales/ko.ts +1 -0
- package/node_modules/zod/src/v4/locales/lt.ts +1 -0
- package/node_modules/zod/src/v4/locales/mk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ms.ts +1 -0
- package/node_modules/zod/src/v4/locales/ne.ts +1 -0
- package/node_modules/zod/src/v4/locales/nl.ts +1 -0
- package/node_modules/zod/src/v4/locales/nn.ts +1 -0
- package/node_modules/zod/src/v4/locales/no.ts +1 -0
- package/node_modules/zod/src/v4/locales/ota.ts +1 -0
- package/node_modules/zod/src/v4/locales/pl.ts +1 -0
- package/node_modules/zod/src/v4/locales/ps.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt-BR.ts +1 -0
- package/node_modules/zod/src/v4/locales/pt.ts +1 -0
- package/node_modules/zod/src/v4/locales/ro.ts +1 -0
- package/node_modules/zod/src/v4/locales/ru.ts +1 -0
- package/node_modules/zod/src/v4/locales/sk.ts +1 -0
- package/node_modules/zod/src/v4/locales/sl.ts +1 -0
- package/node_modules/zod/src/v4/locales/sv.ts +1 -0
- package/node_modules/zod/src/v4/locales/ta.ts +1 -0
- package/node_modules/zod/src/v4/locales/tg.ts +134 -0
- package/node_modules/zod/src/v4/locales/th.ts +1 -0
- package/node_modules/zod/src/v4/locales/tk.ts +1 -0
- package/node_modules/zod/src/v4/locales/tr.ts +1 -0
- package/node_modules/zod/src/v4/locales/uk.ts +1 -0
- package/node_modules/zod/src/v4/locales/ur.ts +1 -0
- package/node_modules/zod/src/v4/locales/uz.ts +1 -0
- package/node_modules/zod/src/v4/locales/vi.ts +1 -0
- package/node_modules/zod/src/v4/locales/yo.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +1 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +1 -0
- package/node_modules/zod/src/v4/mini/checks.ts +0 -1
- package/node_modules/zod/src/v4/mini/external.ts +2 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +39 -3
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +1 -1
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +11 -17
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +30 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +16 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +16 -0
- package/node_modules/zod/v3/ZodError.cjs +19 -0
- package/node_modules/zod/v3/errors.cjs +19 -0
- package/node_modules/zod/v3/external.cjs +19 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +20 -1
- package/node_modules/zod/v3/helpers/errorUtil.js +1 -1
- package/node_modules/zod/v3/helpers/parseUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +19 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +19 -0
- package/node_modules/zod/v3/helpers/util.cjs +19 -0
- package/node_modules/zod/v3/index.cjs +19 -0
- package/node_modules/zod/v3/standard-schema.cjs +19 -0
- package/node_modules/zod/v3/types.cjs +19 -0
- package/node_modules/zod/v4/classic/checks.cjs +20 -2
- package/node_modules/zod/v4/classic/checks.d.cts +1 -1
- package/node_modules/zod/v4/classic/checks.d.ts +1 -1
- package/node_modules/zod/v4/classic/checks.js +1 -1
- package/node_modules/zod/v4/classic/coerce.cjs +19 -0
- package/node_modules/zod/v4/classic/compat.cjs +19 -0
- package/node_modules/zod/v4/classic/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/classic/errors.cjs +19 -0
- package/node_modules/zod/v4/classic/external.cjs +22 -1
- package/node_modules/zod/v4/classic/external.d.cts +1 -1
- package/node_modules/zod/v4/classic/external.d.ts +1 -1
- package/node_modules/zod/v4/classic/external.js +1 -1
- package/node_modules/zod/v4/classic/from-json-schema.cjs +264 -24
- package/node_modules/zod/v4/classic/from-json-schema.js +245 -24
- package/node_modules/zod/v4/classic/in-out.cjs +19 -0
- package/node_modules/zod/v4/classic/index.cjs +19 -0
- package/node_modules/zod/v4/classic/iso.cjs +19 -0
- package/node_modules/zod/v4/classic/parse.cjs +19 -0
- package/node_modules/zod/v4/classic/schemas.cjs +100 -31
- package/node_modules/zod/v4/classic/schemas.d.cts +17 -1
- package/node_modules/zod/v4/classic/schemas.d.ts +17 -1
- package/node_modules/zod/v4/classic/schemas.js +77 -29
- package/node_modules/zod/v4/core/api.cjs +37 -2
- package/node_modules/zod/v4/core/api.d.cts +6 -4
- package/node_modules/zod/v4/core/api.d.ts +6 -4
- package/node_modules/zod/v4/core/api.js +17 -2
- package/node_modules/zod/v4/core/checks.cjs +19 -96
- package/node_modules/zod/v4/core/checks.d.cts +1 -1
- package/node_modules/zod/v4/core/checks.d.ts +1 -1
- package/node_modules/zod/v4/core/checks.js +0 -96
- package/node_modules/zod/v4/core/compile.cjs +172 -72
- package/node_modules/zod/v4/core/compile.d.cts +18 -4
- package/node_modules/zod/v4/core/compile.d.ts +18 -4
- package/node_modules/zod/v4/core/compile.js +153 -73
- package/node_modules/zod/v4/core/core.cjs +19 -0
- package/node_modules/zod/v4/core/doc.cjs +26 -2
- package/node_modules/zod/v4/core/doc.js +7 -2
- package/node_modules/zod/v4/core/errors.cjs +21 -5
- package/node_modules/zod/v4/core/errors.js +2 -5
- package/node_modules/zod/v4/core/index.cjs +19 -0
- package/node_modules/zod/v4/core/json-schema-generator.cjs +20 -1
- package/node_modules/zod/v4/core/json-schema-generator.js +2 -2
- package/node_modules/zod/v4/core/json-schema-processors.cjs +215 -63
- package/node_modules/zod/v4/core/json-schema-processors.d.cts +17 -0
- package/node_modules/zod/v4/core/json-schema-processors.d.ts +17 -0
- package/node_modules/zod/v4/core/json-schema-processors.js +195 -64
- package/node_modules/zod/v4/core/json-schema.cjs +19 -0
- package/node_modules/zod/v4/core/memoizer.cjs +114 -23
- package/node_modules/zod/v4/core/memoizer.js +72 -23
- package/node_modules/zod/v4/core/parse.cjs +56 -16
- package/node_modules/zod/v4/core/parse.js +37 -16
- package/node_modules/zod/v4/core/regexes.cjs +29 -6
- package/node_modules/zod/v4/core/regexes.d.cts +2 -0
- package/node_modules/zod/v4/core/regexes.d.ts +2 -0
- package/node_modules/zod/v4/core/regexes.js +8 -4
- package/node_modules/zod/v4/core/registries.cjs +19 -0
- package/node_modules/zod/v4/core/schemas.cjs +331 -103
- package/node_modules/zod/v4/core/schemas.d.cts +43 -8
- package/node_modules/zod/v4/core/schemas.d.ts +43 -8
- package/node_modules/zod/v4/core/schemas.js +310 -102
- package/node_modules/zod/v4/core/standard-schema.cjs +19 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +29 -7
- package/node_modules/zod/v4/core/to-json-schema.d.cts +7 -3
- package/node_modules/zod/v4/core/to-json-schema.d.ts +7 -3
- package/node_modules/zod/v4/core/to-json-schema.js +8 -7
- package/node_modules/zod/v4/core/util.cjs +181 -143
- package/node_modules/zod/v4/core/util.d.cts +25 -4
- package/node_modules/zod/v4/core/util.d.ts +25 -4
- package/node_modules/zod/v4/core/util.js +160 -143
- package/node_modules/zod/v4/core/versions.cjs +21 -2
- package/node_modules/zod/v4/core/versions.d.cts +1 -1
- package/node_modules/zod/v4/core/versions.d.ts +1 -1
- package/node_modules/zod/v4/core/versions.js +2 -2
- package/node_modules/zod/v4/core/visit.cjs +31 -0
- package/node_modules/zod/v4/core/visit.js +12 -0
- package/node_modules/zod/v4/index.cjs +19 -0
- package/node_modules/zod/v4/locales/ar.cjs +1 -0
- package/node_modules/zod/v4/locales/ar.js +1 -0
- package/node_modules/zod/v4/locales/az.cjs +1 -0
- package/node_modules/zod/v4/locales/az.js +1 -0
- package/node_modules/zod/v4/locales/be.cjs +1 -0
- package/node_modules/zod/v4/locales/be.js +1 -0
- package/node_modules/zod/v4/locales/bg.cjs +1 -0
- package/node_modules/zod/v4/locales/bg.js +1 -0
- package/node_modules/zod/v4/locales/bn.cjs +1 -0
- package/node_modules/zod/v4/locales/bn.js +1 -0
- package/node_modules/zod/v4/locales/ca.cjs +1 -0
- package/node_modules/zod/v4/locales/ca.js +1 -0
- package/node_modules/zod/v4/locales/ckb.cjs +1 -0
- package/node_modules/zod/v4/locales/ckb.js +1 -0
- package/node_modules/zod/v4/locales/cs.cjs +1 -0
- package/node_modules/zod/v4/locales/cs.js +1 -0
- package/node_modules/zod/v4/locales/da.cjs +1 -0
- package/node_modules/zod/v4/locales/da.js +1 -0
- package/node_modules/zod/v4/locales/de.cjs +1 -0
- package/node_modules/zod/v4/locales/de.js +1 -0
- package/node_modules/zod/v4/locales/el.cjs +1 -0
- package/node_modules/zod/v4/locales/el.js +1 -0
- package/node_modules/zod/v4/locales/en.cjs +1 -0
- package/node_modules/zod/v4/locales/en.js +1 -0
- package/node_modules/zod/v4/locales/eo.cjs +1 -0
- package/node_modules/zod/v4/locales/eo.js +1 -0
- package/node_modules/zod/v4/locales/es.cjs +1 -0
- package/node_modules/zod/v4/locales/es.js +1 -0
- package/node_modules/zod/v4/locales/fa.cjs +1 -0
- package/node_modules/zod/v4/locales/fa.js +1 -0
- package/node_modules/zod/v4/locales/fi.cjs +1 -0
- package/node_modules/zod/v4/locales/fi.js +1 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +1 -0
- package/node_modules/zod/v4/locales/fr-CA.js +1 -0
- package/node_modules/zod/v4/locales/fr.cjs +1 -0
- package/node_modules/zod/v4/locales/fr.js +1 -0
- package/node_modules/zod/v4/locales/gu.cjs +1 -0
- package/node_modules/zod/v4/locales/gu.js +1 -0
- package/node_modules/zod/v4/locales/he.cjs +1 -0
- package/node_modules/zod/v4/locales/he.js +1 -0
- package/node_modules/zod/v4/locales/hi.cjs +1 -0
- package/node_modules/zod/v4/locales/hi.js +1 -0
- package/node_modules/zod/v4/locales/hr.cjs +1 -0
- package/node_modules/zod/v4/locales/hr.js +1 -0
- package/node_modules/zod/v4/locales/hu.cjs +1 -0
- package/node_modules/zod/v4/locales/hu.js +1 -0
- package/node_modules/zod/v4/locales/hy.cjs +1 -0
- package/node_modules/zod/v4/locales/hy.js +1 -0
- package/node_modules/zod/v4/locales/id.cjs +1 -0
- package/node_modules/zod/v4/locales/id.js +1 -0
- package/node_modules/zod/v4/locales/index.cjs +22 -1
- package/node_modules/zod/v4/locales/index.d.cts +1 -0
- package/node_modules/zod/v4/locales/index.d.ts +1 -0
- package/node_modules/zod/v4/locales/index.js +1 -0
- package/node_modules/zod/v4/locales/is.cjs +1 -0
- package/node_modules/zod/v4/locales/is.js +1 -0
- package/node_modules/zod/v4/locales/it.cjs +1 -0
- package/node_modules/zod/v4/locales/it.js +1 -0
- package/node_modules/zod/v4/locales/ja.cjs +1 -0
- package/node_modules/zod/v4/locales/ja.js +1 -0
- package/node_modules/zod/v4/locales/ka.cjs +1 -0
- package/node_modules/zod/v4/locales/ka.js +1 -0
- package/node_modules/zod/v4/locales/km.cjs +1 -0
- package/node_modules/zod/v4/locales/km.js +1 -0
- package/node_modules/zod/v4/locales/kn.cjs +1 -0
- package/node_modules/zod/v4/locales/kn.js +1 -0
- package/node_modules/zod/v4/locales/ko.cjs +1 -0
- package/node_modules/zod/v4/locales/ko.js +1 -0
- package/node_modules/zod/v4/locales/lt.cjs +1 -0
- package/node_modules/zod/v4/locales/lt.js +1 -0
- package/node_modules/zod/v4/locales/mk.cjs +1 -0
- package/node_modules/zod/v4/locales/mk.js +1 -0
- package/node_modules/zod/v4/locales/ms.cjs +1 -0
- package/node_modules/zod/v4/locales/ms.js +1 -0
- package/node_modules/zod/v4/locales/ne.cjs +1 -0
- package/node_modules/zod/v4/locales/ne.js +1 -0
- package/node_modules/zod/v4/locales/nl.cjs +1 -0
- package/node_modules/zod/v4/locales/nl.js +1 -0
- package/node_modules/zod/v4/locales/nn.cjs +1 -0
- package/node_modules/zod/v4/locales/nn.js +1 -0
- package/node_modules/zod/v4/locales/no.cjs +1 -0
- package/node_modules/zod/v4/locales/no.js +1 -0
- package/node_modules/zod/v4/locales/ota.cjs +1 -0
- package/node_modules/zod/v4/locales/ota.js +1 -0
- package/node_modules/zod/v4/locales/pl.cjs +1 -0
- package/node_modules/zod/v4/locales/pl.js +1 -0
- package/node_modules/zod/v4/locales/ps.cjs +1 -0
- package/node_modules/zod/v4/locales/ps.js +1 -0
- package/node_modules/zod/v4/locales/pt-BR.cjs +1 -0
- package/node_modules/zod/v4/locales/pt-BR.js +1 -0
- package/node_modules/zod/v4/locales/pt.cjs +1 -0
- package/node_modules/zod/v4/locales/pt.js +1 -0
- package/node_modules/zod/v4/locales/ro.cjs +1 -0
- package/node_modules/zod/v4/locales/ro.js +1 -0
- package/node_modules/zod/v4/locales/ru.cjs +1 -0
- package/node_modules/zod/v4/locales/ru.js +1 -0
- package/node_modules/zod/v4/locales/sk.cjs +1 -0
- package/node_modules/zod/v4/locales/sk.js +1 -0
- package/node_modules/zod/v4/locales/sl.cjs +1 -0
- package/node_modules/zod/v4/locales/sl.js +1 -0
- package/node_modules/zod/v4/locales/sv.cjs +1 -0
- package/node_modules/zod/v4/locales/sv.js +1 -0
- package/node_modules/zod/v4/locales/ta.cjs +1 -0
- package/node_modules/zod/v4/locales/ta.js +1 -0
- package/node_modules/zod/v4/locales/tg.cjs +143 -0
- package/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/node_modules/zod/v4/locales/tg.js +116 -0
- package/node_modules/zod/v4/locales/th.cjs +1 -0
- package/node_modules/zod/v4/locales/th.js +1 -0
- package/node_modules/zod/v4/locales/tk.cjs +1 -0
- package/node_modules/zod/v4/locales/tk.js +1 -0
- package/node_modules/zod/v4/locales/tr.cjs +1 -0
- package/node_modules/zod/v4/locales/tr.js +1 -0
- package/node_modules/zod/v4/locales/uk.cjs +1 -0
- package/node_modules/zod/v4/locales/uk.js +1 -0
- package/node_modules/zod/v4/locales/ur.cjs +1 -0
- package/node_modules/zod/v4/locales/ur.js +1 -0
- package/node_modules/zod/v4/locales/uz.cjs +1 -0
- package/node_modules/zod/v4/locales/uz.js +1 -0
- package/node_modules/zod/v4/locales/vi.cjs +1 -0
- package/node_modules/zod/v4/locales/vi.js +1 -0
- package/node_modules/zod/v4/locales/yo.cjs +1 -0
- package/node_modules/zod/v4/locales/yo.js +1 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-CN.js +1 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +1 -0
- package/node_modules/zod/v4/locales/zh-TW.js +1 -0
- package/node_modules/zod/v4/mini/checks.cjs +20 -2
- package/node_modules/zod/v4/mini/checks.d.cts +1 -1
- package/node_modules/zod/v4/mini/checks.d.ts +1 -1
- package/node_modules/zod/v4/mini/checks.js +1 -1
- package/node_modules/zod/v4/mini/coerce.cjs +19 -0
- package/node_modules/zod/v4/mini/deep-partial.cjs +19 -0
- package/node_modules/zod/v4/mini/external.cjs +22 -1
- package/node_modules/zod/v4/mini/external.d.cts +1 -1
- package/node_modules/zod/v4/mini/external.d.ts +1 -1
- package/node_modules/zod/v4/mini/external.js +1 -1
- package/node_modules/zod/v4/mini/in-out.cjs +19 -0
- package/node_modules/zod/v4/mini/index.cjs +19 -0
- package/node_modules/zod/v4/mini/iso.cjs +19 -0
- package/node_modules/zod/v4/mini/parse.cjs +19 -0
- package/node_modules/zod/v4/mini/schemas.cjs +42 -4
- package/node_modules/zod/v4/mini/schemas.d.cts +9 -1
- package/node_modules/zod/v4/mini/schemas.d.ts +9 -1
- package/node_modules/zod/v4/mini/schemas.js +19 -2
- package/node_modules/zod/v4-mini/index.cjs +19 -0
- package/package.json +2 -2
- package/slingshot/index.js +151 -149
- package/node_modules/@types/node/ffi.d.ts +0 -486
- package/node_modules/@types/node/inspector/promises.d.ts +0 -35
- package/node_modules/@types/node/path/posix.d.ts +0 -8
- package/node_modules/@types/node/path/win32.d.ts +0 -8
- package/node_modules/@types/node/quic.d.ts +0 -2151
- package/node_modules/@types/node/stream/iter.d.ts +0 -452
- package/node_modules/@types/node/test/reporters.d.ts +0 -59
- package/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +0 -71
- package/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +0 -72
- package/node_modules/@types/node/ts5.7/index.d.ts +0 -118
- package/node_modules/@types/node/util/types.d.ts +0 -558
- package/node_modules/@types/node/vfs.d.ts +0 -210
- package/node_modules/@types/node/web-globals/blob.d.ts +0 -23
- package/node_modules/@types/node/web-globals/console.d.ts +0 -9
- package/node_modules/@types/node/web-globals/crypto.d.ts +0 -39
- package/node_modules/@types/node/web-globals/encoding.d.ts +0 -11
- package/node_modules/@types/node/web-globals/importmeta.d.ts +0 -13
- package/node_modules/@types/node/web-globals/messaging.d.ts +0 -23
- package/node_modules/@types/node/web-globals/performance.d.ts +0 -45
- package/node_modules/@types/node/web-globals/timers.d.ts +0 -44
- package/node_modules/@types/node/web-globals/url.d.ts +0 -24
- package/node_modules/@types/node/zlib/iter.d.ts +0 -131
- package/node_modules/jose/dist/webapi/lib/base64.js +0 -20
- package/node_modules/jose/dist/webapi/lib/crypto_key.js +0 -27
- package/node_modules/jose/dist/webapi/lib/helpers.js +0 -45
- package/node_modules/jose/dist/webapi/lib/invalid_key_input.js +0 -12
- package/node_modules/jose/dist/webapi/lib/is_key_like.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_metadata.js +0 -19
- package/node_modules/jose/dist/webapi/lib/jwk_to_key.js +0 -10
- package/node_modules/jose/dist/webapi/lib/key_options.js +0 -8
- package/node_modules/jose/dist/webapi/lib/signing.js +0 -22
- package/node_modules/jose/dist/webapi/lib/type_checks.js +0 -30
- package/node_modules/undici-types/cache-interceptor.d.ts +0 -179
- package/node_modules/undici-types/client-stats.d.ts +0 -15
- package/node_modules/undici-types/dispatcher1-wrapper.d.ts +0 -7
- package/node_modules/undici-types/h2c-client.d.ts +0 -73
- package/node_modules/undici-types/mock-call-history.d.ts +0 -111
- package/node_modules/undici-types/round-robin-pool.d.ts +0 -39
- package/node_modules/undici-types/snapshot-agent.d.ts +0 -113
- package/node_modules/undici-types/socks5-proxy-agent.d.ts +0 -25
- package/node_modules/undici-types/utility.d.ts +0 -7
|
@@ -1,6 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* The `node:http2` module provides an implementation of the [HTTP/2](https://tools.ietf.org/html/rfc7540) protocol.
|
|
3
|
+
* It can be accessed using:
|
|
4
|
+
*
|
|
5
|
+
* ```js
|
|
6
|
+
* import http2 from 'node:http2';
|
|
7
|
+
* ```
|
|
8
|
+
* @since v8.4.0
|
|
9
|
+
* @see [source](https://github.com/nodejs/node/blob/v22.x/lib/http2.js)
|
|
10
|
+
*/
|
|
11
|
+
declare module "http2" {
|
|
2
12
|
import { NonSharedBuffer } from "node:buffer";
|
|
3
|
-
import
|
|
13
|
+
import EventEmitter = require("node:events");
|
|
4
14
|
import * as fs from "node:fs";
|
|
5
15
|
import * as net from "node:net";
|
|
6
16
|
import * as stream from "node:stream";
|
|
@@ -12,10 +22,11 @@ declare module "node:http2" {
|
|
|
12
22
|
OutgoingHttpHeaders,
|
|
13
23
|
ServerResponse,
|
|
14
24
|
} from "node:http";
|
|
15
|
-
|
|
25
|
+
export { OutgoingHttpHeaders } from "node:http";
|
|
26
|
+
export interface IncomingHttpStatusHeader {
|
|
16
27
|
":status"?: number | undefined;
|
|
17
28
|
}
|
|
18
|
-
interface IncomingHttpHeaders extends Http1IncomingHttpHeaders {
|
|
29
|
+
export interface IncomingHttpHeaders extends Http1IncomingHttpHeaders {
|
|
19
30
|
":path"?: string | undefined;
|
|
20
31
|
":method"?: string | undefined;
|
|
21
32
|
":authority"?: string | undefined;
|
|
@@ -23,25 +34,29 @@ declare module "node:http2" {
|
|
|
23
34
|
":protocol"?: string | undefined;
|
|
24
35
|
}
|
|
25
36
|
// Http2Stream
|
|
26
|
-
interface
|
|
37
|
+
export interface StreamPriorityOptions {
|
|
38
|
+
exclusive?: boolean | undefined;
|
|
39
|
+
parent?: number | undefined;
|
|
40
|
+
weight?: number | undefined;
|
|
41
|
+
silent?: boolean | undefined;
|
|
42
|
+
}
|
|
43
|
+
export interface StreamState {
|
|
27
44
|
localWindowSize?: number | undefined;
|
|
28
45
|
state?: number | undefined;
|
|
29
46
|
localClose?: number | undefined;
|
|
30
47
|
remoteClose?: number | undefined;
|
|
31
|
-
/** @deprecated */
|
|
32
48
|
sumDependencyWeight?: number | undefined;
|
|
33
|
-
/** @deprecated */
|
|
34
49
|
weight?: number | undefined;
|
|
35
50
|
}
|
|
36
|
-
interface ServerStreamResponseOptions {
|
|
51
|
+
export interface ServerStreamResponseOptions {
|
|
37
52
|
endStream?: boolean | undefined;
|
|
38
53
|
waitForTrailers?: boolean | undefined;
|
|
39
54
|
}
|
|
40
|
-
interface StatOptions {
|
|
55
|
+
export interface StatOptions {
|
|
41
56
|
offset: number;
|
|
42
57
|
length: number;
|
|
43
58
|
}
|
|
44
|
-
interface ServerStreamFileResponseOptions {
|
|
59
|
+
export interface ServerStreamFileResponseOptions {
|
|
45
60
|
statCheck?:
|
|
46
61
|
| ((stats: fs.Stats, headers: OutgoingHttpHeaders, statOptions: StatOptions) => void)
|
|
47
62
|
| undefined;
|
|
@@ -49,20 +64,10 @@ declare module "node:http2" {
|
|
|
49
64
|
offset?: number | undefined;
|
|
50
65
|
length?: number | undefined;
|
|
51
66
|
}
|
|
52
|
-
interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions {
|
|
67
|
+
export interface ServerStreamFileResponseOptionsWithError extends ServerStreamFileResponseOptions {
|
|
53
68
|
onError?: ((err: NodeJS.ErrnoException) => void) | undefined;
|
|
54
69
|
}
|
|
55
|
-
interface
|
|
56
|
-
"aborted": [];
|
|
57
|
-
"data": [chunk: string | NonSharedBuffer];
|
|
58
|
-
"frameError": [type: number, code: number, id: number];
|
|
59
|
-
"ready": [];
|
|
60
|
-
"streamClosed": [code: number];
|
|
61
|
-
"timeout": [];
|
|
62
|
-
"trailers": [headers: IncomingHttpHeaders, flags: number, rawHeaders: string[]];
|
|
63
|
-
"wantTrailers": [];
|
|
64
|
-
}
|
|
65
|
-
interface Http2Stream extends stream.Duplex {
|
|
70
|
+
export interface Http2Stream extends stream.Duplex {
|
|
66
71
|
/**
|
|
67
72
|
* Set to `true` if the `Http2Stream` instance was aborted abnormally. When set,
|
|
68
73
|
* the `'aborted'` event will have been emitted.
|
|
@@ -149,9 +154,10 @@ declare module "node:http2" {
|
|
|
149
154
|
*/
|
|
150
155
|
close(code?: number, callback?: () => void): void;
|
|
151
156
|
/**
|
|
152
|
-
*
|
|
157
|
+
* Updates the priority for this `Http2Stream` instance.
|
|
158
|
+
* @since v8.4.0
|
|
153
159
|
*/
|
|
154
|
-
priority(options:
|
|
160
|
+
priority(options: StreamPriorityOptions): void;
|
|
155
161
|
/**
|
|
156
162
|
* ```js
|
|
157
163
|
* import http2 from 'node:http2';
|
|
@@ -190,122 +196,219 @@ declare module "node:http2" {
|
|
|
190
196
|
* @since v10.0.0
|
|
191
197
|
*/
|
|
192
198
|
sendTrailers(headers: OutgoingHttpHeaders): void;
|
|
193
|
-
|
|
194
|
-
addListener
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
): this;
|
|
198
|
-
addListener(
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
):
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
):
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
):
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
):
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
): this;
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
): this;
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
): this;
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
199
|
+
addListener(event: "aborted", listener: () => void): this;
|
|
200
|
+
addListener(event: "close", listener: () => void): this;
|
|
201
|
+
addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
202
|
+
addListener(event: "drain", listener: () => void): this;
|
|
203
|
+
addListener(event: "end", listener: () => void): this;
|
|
204
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
205
|
+
addListener(event: "finish", listener: () => void): this;
|
|
206
|
+
addListener(
|
|
207
|
+
event: "frameError",
|
|
208
|
+
listener: (frameType: number, errorCode: number, id: number) => void,
|
|
209
|
+
): this;
|
|
210
|
+
addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
211
|
+
addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
212
|
+
addListener(event: "streamClosed", listener: (code: number) => void): this;
|
|
213
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
214
|
+
addListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
|
|
215
|
+
addListener(event: "wantTrailers", listener: () => void): this;
|
|
216
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
217
|
+
emit(event: "aborted"): boolean;
|
|
218
|
+
emit(event: "close"): boolean;
|
|
219
|
+
emit(event: "data", chunk: NonSharedBuffer | string): boolean;
|
|
220
|
+
emit(event: "drain"): boolean;
|
|
221
|
+
emit(event: "end"): boolean;
|
|
222
|
+
emit(event: "error", err: Error): boolean;
|
|
223
|
+
emit(event: "finish"): boolean;
|
|
224
|
+
emit(event: "frameError", frameType: number, errorCode: number, id: number): boolean;
|
|
225
|
+
emit(event: "pipe", src: stream.Readable): boolean;
|
|
226
|
+
emit(event: "unpipe", src: stream.Readable): boolean;
|
|
227
|
+
emit(event: "streamClosed", code: number): boolean;
|
|
228
|
+
emit(event: "timeout"): boolean;
|
|
229
|
+
emit(event: "trailers", trailers: IncomingHttpHeaders, flags: number): boolean;
|
|
230
|
+
emit(event: "wantTrailers"): boolean;
|
|
231
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
232
|
+
on(event: "aborted", listener: () => void): this;
|
|
233
|
+
on(event: "close", listener: () => void): this;
|
|
234
|
+
on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
235
|
+
on(event: "drain", listener: () => void): this;
|
|
236
|
+
on(event: "end", listener: () => void): this;
|
|
237
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
238
|
+
on(event: "finish", listener: () => void): this;
|
|
239
|
+
on(event: "frameError", listener: (frameType: number, errorCode: number, id: number) => void): this;
|
|
240
|
+
on(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
241
|
+
on(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
242
|
+
on(event: "streamClosed", listener: (code: number) => void): this;
|
|
243
|
+
on(event: "timeout", listener: () => void): this;
|
|
244
|
+
on(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
|
|
245
|
+
on(event: "wantTrailers", listener: () => void): this;
|
|
246
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
247
|
+
once(event: "aborted", listener: () => void): this;
|
|
248
|
+
once(event: "close", listener: () => void): this;
|
|
249
|
+
once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
250
|
+
once(event: "drain", listener: () => void): this;
|
|
251
|
+
once(event: "end", listener: () => void): this;
|
|
252
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
253
|
+
once(event: "finish", listener: () => void): this;
|
|
254
|
+
once(event: "frameError", listener: (frameType: number, errorCode: number, id: number) => void): this;
|
|
255
|
+
once(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
256
|
+
once(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
257
|
+
once(event: "streamClosed", listener: (code: number) => void): this;
|
|
258
|
+
once(event: "timeout", listener: () => void): this;
|
|
259
|
+
once(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
|
|
260
|
+
once(event: "wantTrailers", listener: () => void): this;
|
|
261
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
262
|
+
prependListener(event: "aborted", listener: () => void): this;
|
|
263
|
+
prependListener(event: "close", listener: () => void): this;
|
|
264
|
+
prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
265
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
266
|
+
prependListener(event: "end", listener: () => void): this;
|
|
267
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
268
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
269
|
+
prependListener(
|
|
270
|
+
event: "frameError",
|
|
271
|
+
listener: (frameType: number, errorCode: number, id: number) => void,
|
|
272
|
+
): this;
|
|
273
|
+
prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
274
|
+
prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
275
|
+
prependListener(event: "streamClosed", listener: (code: number) => void): this;
|
|
276
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
277
|
+
prependListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
|
|
278
|
+
prependListener(event: "wantTrailers", listener: () => void): this;
|
|
279
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
280
|
+
prependOnceListener(event: "aborted", listener: () => void): this;
|
|
281
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
282
|
+
prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
283
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
284
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
285
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
286
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
287
|
+
prependOnceListener(
|
|
288
|
+
event: "frameError",
|
|
289
|
+
listener: (frameType: number, errorCode: number, id: number) => void,
|
|
290
|
+
): this;
|
|
291
|
+
prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
292
|
+
prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
293
|
+
prependOnceListener(event: "streamClosed", listener: (code: number) => void): this;
|
|
294
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
295
|
+
prependOnceListener(event: "trailers", listener: (trailers: IncomingHttpHeaders, flags: number) => void): this;
|
|
296
|
+
prependOnceListener(event: "wantTrailers", listener: () => void): this;
|
|
297
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
250
298
|
}
|
|
251
|
-
interface ClientHttp2Stream extends Http2Stream {
|
|
252
|
-
|
|
253
|
-
addListener
|
|
254
|
-
|
|
255
|
-
listener: (
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
):
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
): this;
|
|
305
|
-
|
|
306
|
-
|
|
299
|
+
export interface ClientHttp2Stream extends Http2Stream {
|
|
300
|
+
addListener(event: "continue", listener: () => {}): this;
|
|
301
|
+
addListener(
|
|
302
|
+
event: "headers",
|
|
303
|
+
listener: (
|
|
304
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
305
|
+
flags: number,
|
|
306
|
+
rawHeaders: string[],
|
|
307
|
+
) => void,
|
|
308
|
+
): this;
|
|
309
|
+
addListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
310
|
+
addListener(
|
|
311
|
+
event: "response",
|
|
312
|
+
listener: (
|
|
313
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
314
|
+
flags: number,
|
|
315
|
+
rawHeaders: string[],
|
|
316
|
+
) => void,
|
|
317
|
+
): this;
|
|
318
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
319
|
+
emit(event: "continue"): boolean;
|
|
320
|
+
emit(
|
|
321
|
+
event: "headers",
|
|
322
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
323
|
+
flags: number,
|
|
324
|
+
rawHeaders: string[],
|
|
325
|
+
): boolean;
|
|
326
|
+
emit(event: "push", headers: IncomingHttpHeaders, flags: number): boolean;
|
|
327
|
+
emit(
|
|
328
|
+
event: "response",
|
|
329
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
330
|
+
flags: number,
|
|
331
|
+
rawHeaders: string[],
|
|
332
|
+
): boolean;
|
|
333
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
334
|
+
on(event: "continue", listener: () => {}): this;
|
|
335
|
+
on(
|
|
336
|
+
event: "headers",
|
|
337
|
+
listener: (
|
|
338
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
339
|
+
flags: number,
|
|
340
|
+
rawHeaders: string[],
|
|
341
|
+
) => void,
|
|
342
|
+
): this;
|
|
343
|
+
on(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
344
|
+
on(
|
|
345
|
+
event: "response",
|
|
346
|
+
listener: (
|
|
347
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
348
|
+
flags: number,
|
|
349
|
+
rawHeaders: string[],
|
|
350
|
+
) => void,
|
|
351
|
+
): this;
|
|
352
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
353
|
+
once(event: "continue", listener: () => {}): this;
|
|
354
|
+
once(
|
|
355
|
+
event: "headers",
|
|
356
|
+
listener: (
|
|
357
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
358
|
+
flags: number,
|
|
359
|
+
rawHeaders: string[],
|
|
360
|
+
) => void,
|
|
361
|
+
): this;
|
|
362
|
+
once(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
363
|
+
once(
|
|
364
|
+
event: "response",
|
|
365
|
+
listener: (
|
|
366
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
367
|
+
flags: number,
|
|
368
|
+
rawHeaders: string[],
|
|
369
|
+
) => void,
|
|
370
|
+
): this;
|
|
371
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
372
|
+
prependListener(event: "continue", listener: () => {}): this;
|
|
373
|
+
prependListener(
|
|
374
|
+
event: "headers",
|
|
375
|
+
listener: (
|
|
376
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
377
|
+
flags: number,
|
|
378
|
+
rawHeaders: string[],
|
|
379
|
+
) => void,
|
|
380
|
+
): this;
|
|
381
|
+
prependListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
382
|
+
prependListener(
|
|
383
|
+
event: "response",
|
|
384
|
+
listener: (
|
|
385
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
386
|
+
flags: number,
|
|
387
|
+
rawHeaders: string[],
|
|
388
|
+
) => void,
|
|
389
|
+
): this;
|
|
390
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
391
|
+
prependOnceListener(event: "continue", listener: () => {}): this;
|
|
392
|
+
prependOnceListener(
|
|
393
|
+
event: "headers",
|
|
394
|
+
listener: (
|
|
395
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
396
|
+
flags: number,
|
|
397
|
+
rawHeaders: string[],
|
|
398
|
+
) => void,
|
|
399
|
+
): this;
|
|
400
|
+
prependOnceListener(event: "push", listener: (headers: IncomingHttpHeaders, flags: number) => void): this;
|
|
401
|
+
prependOnceListener(
|
|
402
|
+
event: "response",
|
|
403
|
+
listener: (
|
|
404
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
405
|
+
flags: number,
|
|
406
|
+
rawHeaders: string[],
|
|
407
|
+
) => void,
|
|
408
|
+
): this;
|
|
409
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
307
410
|
}
|
|
308
|
-
interface ServerHttp2Stream extends Http2Stream {
|
|
411
|
+
export interface ServerHttp2Stream extends Http2Stream {
|
|
309
412
|
/**
|
|
310
413
|
* True if headers were sent, false otherwise (read-only).
|
|
311
414
|
* @since v8.4.0
|
|
@@ -354,7 +457,7 @@ declare module "node:http2" {
|
|
|
354
457
|
): void;
|
|
355
458
|
pushStream(
|
|
356
459
|
headers: OutgoingHttpHeaders,
|
|
357
|
-
options?:
|
|
460
|
+
options?: StreamPriorityOptions,
|
|
358
461
|
callback?: (err: Error | null, pushStream: ServerHttp2Stream, headers: OutgoingHttpHeaders) => void,
|
|
359
462
|
): void;
|
|
360
463
|
/**
|
|
@@ -433,7 +536,7 @@ declare module "node:http2" {
|
|
|
433
536
|
*
|
|
434
537
|
* When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
|
|
435
538
|
* will be emitted immediately after queuing the last chunk of payload data to be
|
|
436
|
-
* sent. The `http2stream.sendTrailers()` method can then be used to
|
|
539
|
+
* sent. The `http2stream.sendTrailers()` method can then be used to sent trailing
|
|
437
540
|
* header fields to the peer.
|
|
438
541
|
*
|
|
439
542
|
* When `options.waitForTrailers` is set, the `Http2Stream` will not automatically
|
|
@@ -548,7 +651,7 @@ declare module "node:http2" {
|
|
|
548
651
|
*
|
|
549
652
|
* When the `options.waitForTrailers` option is set, the `'wantTrailers'` event
|
|
550
653
|
* will be emitted immediately after queuing the last chunk of payload data to be
|
|
551
|
-
* sent. The `http2stream.sendTrailers()` method can then be used to
|
|
654
|
+
* sent. The `http2stream.sendTrailers()` method can then be used to sent trailing
|
|
552
655
|
* header fields to the peer.
|
|
553
656
|
*
|
|
554
657
|
* When `options.waitForTrailers` is set, the `Http2Stream` will not automatically
|
|
@@ -575,7 +678,7 @@ declare module "node:http2" {
|
|
|
575
678
|
): void;
|
|
576
679
|
}
|
|
577
680
|
// Http2Session
|
|
578
|
-
interface Settings {
|
|
681
|
+
export interface Settings {
|
|
579
682
|
headerTableSize?: number | undefined;
|
|
580
683
|
enablePush?: boolean | undefined;
|
|
581
684
|
initialWindowSize?: number | undefined;
|
|
@@ -585,14 +688,15 @@ declare module "node:http2" {
|
|
|
585
688
|
enableConnectProtocol?: boolean | undefined;
|
|
586
689
|
customSettings?: { [key: number]: number };
|
|
587
690
|
}
|
|
588
|
-
interface ClientSessionRequestOptions {
|
|
691
|
+
export interface ClientSessionRequestOptions {
|
|
589
692
|
endStream?: boolean | undefined;
|
|
590
693
|
exclusive?: boolean | undefined;
|
|
591
694
|
parent?: number | undefined;
|
|
695
|
+
weight?: number | undefined;
|
|
592
696
|
waitForTrailers?: boolean | undefined;
|
|
593
697
|
signal?: AbortSignal | undefined;
|
|
594
698
|
}
|
|
595
|
-
interface SessionState {
|
|
699
|
+
export interface SessionState {
|
|
596
700
|
effectiveLocalWindowSize?: number | undefined;
|
|
597
701
|
effectiveRecvDataLength?: number | undefined;
|
|
598
702
|
nextStreamID?: number | undefined;
|
|
@@ -603,24 +707,7 @@ declare module "node:http2" {
|
|
|
603
707
|
deflateDynamicTableSize?: number | undefined;
|
|
604
708
|
inflateDynamicTableSize?: number | undefined;
|
|
605
709
|
}
|
|
606
|
-
interface
|
|
607
|
-
"close": [];
|
|
608
|
-
"connect": [session: Http2Session, socket: net.Socket | tls.TLSSocket];
|
|
609
|
-
"error": [err: Error];
|
|
610
|
-
"frameError": [type: number, code: number, id: number];
|
|
611
|
-
"goaway": [errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer];
|
|
612
|
-
"localSettings": [settings: Settings];
|
|
613
|
-
"ping": [payload: Buffer];
|
|
614
|
-
"remoteSettings": [settings: Settings];
|
|
615
|
-
"stream": [
|
|
616
|
-
stream: Http2Stream,
|
|
617
|
-
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
618
|
-
flags: number,
|
|
619
|
-
rawHeaders: string[],
|
|
620
|
-
];
|
|
621
|
-
"timeout": [];
|
|
622
|
-
}
|
|
623
|
-
interface Http2Session extends InternalEventEmitter<Http2SessionEventMap> {
|
|
710
|
+
export interface Http2Session extends EventEmitter {
|
|
624
711
|
/**
|
|
625
712
|
* Value will be `undefined` if the `Http2Session` is not yet connected to a
|
|
626
713
|
* socket, `h2c` if the `Http2Session` is not connected to a `TLSSocket`, or
|
|
@@ -822,30 +909,94 @@ declare module "node:http2" {
|
|
|
822
909
|
* @since v9.4.0
|
|
823
910
|
*/
|
|
824
911
|
unref(): void;
|
|
912
|
+
addListener(event: "close", listener: () => void): this;
|
|
913
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
914
|
+
addListener(
|
|
915
|
+
event: "frameError",
|
|
916
|
+
listener: (frameType: number, errorCode: number, id: number) => void,
|
|
917
|
+
): this;
|
|
918
|
+
addListener(
|
|
919
|
+
event: "goaway",
|
|
920
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void,
|
|
921
|
+
): this;
|
|
922
|
+
addListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
923
|
+
addListener(event: "ping", listener: () => void): this;
|
|
924
|
+
addListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
925
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
926
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
927
|
+
emit(event: "close"): boolean;
|
|
928
|
+
emit(event: "error", err: Error): boolean;
|
|
929
|
+
emit(event: "frameError", frameType: number, errorCode: number, id: number): boolean;
|
|
930
|
+
emit(event: "goaway", errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer): boolean;
|
|
931
|
+
emit(event: "localSettings", settings: Settings): boolean;
|
|
932
|
+
emit(event: "ping"): boolean;
|
|
933
|
+
emit(event: "remoteSettings", settings: Settings): boolean;
|
|
934
|
+
emit(event: "timeout"): boolean;
|
|
935
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
936
|
+
on(event: "close", listener: () => void): this;
|
|
937
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
938
|
+
on(event: "frameError", listener: (frameType: number, errorCode: number, id: number) => void): this;
|
|
939
|
+
on(
|
|
940
|
+
event: "goaway",
|
|
941
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void,
|
|
942
|
+
): this;
|
|
943
|
+
on(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
944
|
+
on(event: "ping", listener: () => void): this;
|
|
945
|
+
on(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
946
|
+
on(event: "timeout", listener: () => void): this;
|
|
947
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
948
|
+
once(event: "close", listener: () => void): this;
|
|
949
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
950
|
+
once(event: "frameError", listener: (frameType: number, errorCode: number, id: number) => void): this;
|
|
951
|
+
once(
|
|
952
|
+
event: "goaway",
|
|
953
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void,
|
|
954
|
+
): this;
|
|
955
|
+
once(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
956
|
+
once(event: "ping", listener: () => void): this;
|
|
957
|
+
once(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
958
|
+
once(event: "timeout", listener: () => void): this;
|
|
959
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
960
|
+
prependListener(event: "close", listener: () => void): this;
|
|
961
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
962
|
+
prependListener(
|
|
963
|
+
event: "frameError",
|
|
964
|
+
listener: (frameType: number, errorCode: number, id: number) => void,
|
|
965
|
+
): this;
|
|
966
|
+
prependListener(
|
|
967
|
+
event: "goaway",
|
|
968
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void,
|
|
969
|
+
): this;
|
|
970
|
+
prependListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
971
|
+
prependListener(event: "ping", listener: () => void): this;
|
|
972
|
+
prependListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
973
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
974
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
975
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
976
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
977
|
+
prependOnceListener(
|
|
978
|
+
event: "frameError",
|
|
979
|
+
listener: (frameType: number, errorCode: number, id: number) => void,
|
|
980
|
+
): this;
|
|
981
|
+
prependOnceListener(
|
|
982
|
+
event: "goaway",
|
|
983
|
+
listener: (errorCode: number, lastStreamID: number, opaqueData?: NonSharedBuffer) => void,
|
|
984
|
+
): this;
|
|
985
|
+
prependOnceListener(event: "localSettings", listener: (settings: Settings) => void): this;
|
|
986
|
+
prependOnceListener(event: "ping", listener: () => void): this;
|
|
987
|
+
prependOnceListener(event: "remoteSettings", listener: (settings: Settings) => void): this;
|
|
988
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
989
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
825
990
|
}
|
|
826
|
-
interface
|
|
827
|
-
"altsvc": [alt: string, origin: string, streamId: number];
|
|
828
|
-
"connect": [session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket];
|
|
829
|
-
"origin": [origins: string[]];
|
|
830
|
-
"stream": [
|
|
831
|
-
stream: ClientHttp2Stream,
|
|
832
|
-
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
833
|
-
flags: number,
|
|
834
|
-
rawHeaders: string[],
|
|
835
|
-
];
|
|
836
|
-
}
|
|
837
|
-
interface ClientHttp2Session extends Http2Session {
|
|
991
|
+
export interface ClientHttp2Session extends Http2Session {
|
|
838
992
|
/**
|
|
839
993
|
* For HTTP/2 Client `Http2Session` instances only, the `http2session.request()` creates and returns an `Http2Stream` instance that can be used to send an
|
|
840
994
|
* HTTP/2 request to the connected server.
|
|
841
995
|
*
|
|
842
996
|
* When a `ClientHttp2Session` is first created, the socket may not yet be
|
|
843
|
-
* connected.
|
|
997
|
+
* connected. if `clienthttp2session.request()` is called during this time, the
|
|
844
998
|
* actual request will be deferred until the socket is ready to go.
|
|
845
|
-
*
|
|
846
|
-
* If the session becomes unavailable before the request can be created, the
|
|
847
|
-
* returned stream will emit `ERR_HTTP2_GOAWAY_SESSION` or
|
|
848
|
-
* `ERR_HTTP2_INVALID_SESSION` asynchronously.
|
|
999
|
+
* If the `session` is closed before the actual request be executed, an `ERR_HTTP2_GOAWAY_SESSION` is thrown.
|
|
849
1000
|
*
|
|
850
1001
|
* This method is only available if `http2session.type` is equal to `http2.constants.NGHTTP2_SESSION_CLIENT`.
|
|
851
1002
|
*
|
|
@@ -887,78 +1038,99 @@ declare module "node:http2" {
|
|
|
887
1038
|
headers?: OutgoingHttpHeaders | readonly string[],
|
|
888
1039
|
options?: ClientSessionRequestOptions,
|
|
889
1040
|
): ClientHttp2Stream;
|
|
890
|
-
|
|
891
|
-
addListener
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
):
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
): this;
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1041
|
+
addListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
1042
|
+
addListener(event: "origin", listener: (origins: string[]) => void): this;
|
|
1043
|
+
addListener(
|
|
1044
|
+
event: "connect",
|
|
1045
|
+
listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
|
|
1046
|
+
): this;
|
|
1047
|
+
addListener(
|
|
1048
|
+
event: "stream",
|
|
1049
|
+
listener: (
|
|
1050
|
+
stream: ClientHttp2Stream,
|
|
1051
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
1052
|
+
flags: number,
|
|
1053
|
+
rawHeaders: string[],
|
|
1054
|
+
) => void,
|
|
1055
|
+
): this;
|
|
1056
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1057
|
+
emit(event: "altsvc", alt: string, origin: string, stream: number): boolean;
|
|
1058
|
+
emit(event: "origin", origins: readonly string[]): boolean;
|
|
1059
|
+
emit(event: "connect", session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket): boolean;
|
|
1060
|
+
emit(
|
|
1061
|
+
event: "stream",
|
|
1062
|
+
stream: ClientHttp2Stream,
|
|
1063
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
1064
|
+
flags: number,
|
|
1065
|
+
rawHeaders: string[],
|
|
1066
|
+
): boolean;
|
|
1067
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
1068
|
+
on(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
1069
|
+
on(event: "origin", listener: (origins: string[]) => void): this;
|
|
1070
|
+
on(event: "connect", listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void): this;
|
|
1071
|
+
on(
|
|
1072
|
+
event: "stream",
|
|
1073
|
+
listener: (
|
|
1074
|
+
stream: ClientHttp2Stream,
|
|
1075
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
1076
|
+
flags: number,
|
|
1077
|
+
rawHeaders: string[],
|
|
1078
|
+
) => void,
|
|
1079
|
+
): this;
|
|
1080
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1081
|
+
once(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
1082
|
+
once(event: "origin", listener: (origins: string[]) => void): this;
|
|
1083
|
+
once(
|
|
1084
|
+
event: "connect",
|
|
1085
|
+
listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
|
|
1086
|
+
): this;
|
|
1087
|
+
once(
|
|
1088
|
+
event: "stream",
|
|
1089
|
+
listener: (
|
|
1090
|
+
stream: ClientHttp2Stream,
|
|
1091
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
1092
|
+
flags: number,
|
|
1093
|
+
rawHeaders: string[],
|
|
1094
|
+
) => void,
|
|
1095
|
+
): this;
|
|
1096
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1097
|
+
prependListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
1098
|
+
prependListener(event: "origin", listener: (origins: string[]) => void): this;
|
|
1099
|
+
prependListener(
|
|
1100
|
+
event: "connect",
|
|
1101
|
+
listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
|
|
1102
|
+
): this;
|
|
1103
|
+
prependListener(
|
|
1104
|
+
event: "stream",
|
|
1105
|
+
listener: (
|
|
1106
|
+
stream: ClientHttp2Stream,
|
|
1107
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
1108
|
+
flags: number,
|
|
1109
|
+
rawHeaders: string[],
|
|
1110
|
+
) => void,
|
|
1111
|
+
): this;
|
|
1112
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1113
|
+
prependOnceListener(event: "altsvc", listener: (alt: string, origin: string, stream: number) => void): this;
|
|
1114
|
+
prependOnceListener(event: "origin", listener: (origins: string[]) => void): this;
|
|
1115
|
+
prependOnceListener(
|
|
1116
|
+
event: "connect",
|
|
1117
|
+
listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
|
|
1118
|
+
): this;
|
|
1119
|
+
prependOnceListener(
|
|
1120
|
+
event: "stream",
|
|
1121
|
+
listener: (
|
|
1122
|
+
stream: ClientHttp2Stream,
|
|
1123
|
+
headers: IncomingHttpHeaders & IncomingHttpStatusHeader,
|
|
1124
|
+
flags: number,
|
|
1125
|
+
rawHeaders: string[],
|
|
1126
|
+
) => void,
|
|
1127
|
+
): this;
|
|
1128
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
945
1129
|
}
|
|
946
|
-
interface AlternativeServiceOptions {
|
|
1130
|
+
export interface AlternativeServiceOptions {
|
|
947
1131
|
origin: number | string | url.URL;
|
|
948
1132
|
}
|
|
949
|
-
interface
|
|
950
|
-
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
951
|
-
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
952
|
-
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
953
|
-
Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
|
|
954
|
-
> extends Http2SessionEventMap {
|
|
955
|
-
"connect": [
|
|
956
|
-
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
957
|
-
socket: net.Socket | tls.TLSSocket,
|
|
958
|
-
];
|
|
959
|
-
"stream": [stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number, rawHeaders: string[]];
|
|
960
|
-
}
|
|
961
|
-
interface ServerHttp2Session<
|
|
1133
|
+
export interface ServerHttp2Session<
|
|
962
1134
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
963
1135
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
964
1136
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
@@ -1059,87 +1231,107 @@ declare module "node:http2" {
|
|
|
1059
1231
|
}
|
|
1060
1232
|
>
|
|
1061
1233
|
): void;
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
eventName: E,
|
|
1234
|
+
addListener(
|
|
1235
|
+
event: "connect",
|
|
1065
1236
|
listener: (
|
|
1066
|
-
|
|
1237
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1238
|
+
socket: net.Socket | tls.TLSSocket,
|
|
1067
1239
|
) => void,
|
|
1068
1240
|
): this;
|
|
1069
|
-
addListener(
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1241
|
+
addListener(
|
|
1242
|
+
event: "stream",
|
|
1243
|
+
listener: (
|
|
1244
|
+
stream: ServerHttp2Stream,
|
|
1245
|
+
headers: IncomingHttpHeaders,
|
|
1246
|
+
flags: number,
|
|
1247
|
+
rawHeaders: string[],
|
|
1248
|
+
) => void,
|
|
1249
|
+
): this;
|
|
1250
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1251
|
+
emit(
|
|
1252
|
+
event: "connect",
|
|
1253
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1254
|
+
socket: net.Socket | tls.TLSSocket,
|
|
1255
|
+
): boolean;
|
|
1256
|
+
emit(
|
|
1257
|
+
event: "stream",
|
|
1258
|
+
stream: ServerHttp2Stream,
|
|
1259
|
+
headers: IncomingHttpHeaders,
|
|
1260
|
+
flags: number,
|
|
1261
|
+
rawHeaders: string[],
|
|
1073
1262
|
): boolean;
|
|
1074
|
-
emit(
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
listener
|
|
1078
|
-
|
|
1263
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
1264
|
+
on(
|
|
1265
|
+
event: "connect",
|
|
1266
|
+
listener: (
|
|
1267
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1268
|
+
socket: net.Socket | tls.TLSSocket,
|
|
1269
|
+
) => void,
|
|
1270
|
+
): this;
|
|
1271
|
+
on(
|
|
1272
|
+
event: "stream",
|
|
1273
|
+
listener: (
|
|
1274
|
+
stream: ServerHttp2Stream,
|
|
1275
|
+
headers: IncomingHttpHeaders,
|
|
1276
|
+
flags: number,
|
|
1277
|
+
rawHeaders: string[],
|
|
1079
1278
|
) => void,
|
|
1080
|
-
):
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
): ((
|
|
1085
|
-
...args: ServerHttp2SessionEventMap<Http1Request, Http1Response, Http2Request, Http2Response>[E]
|
|
1086
|
-
) => void)[];
|
|
1087
|
-
listeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
1088
|
-
off<E extends keyof ServerHttp2SessionEventMap>(
|
|
1089
|
-
eventName: E,
|
|
1279
|
+
): this;
|
|
1280
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1281
|
+
once(
|
|
1282
|
+
event: "connect",
|
|
1090
1283
|
listener: (
|
|
1091
|
-
|
|
1284
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1285
|
+
socket: net.Socket | tls.TLSSocket,
|
|
1092
1286
|
) => void,
|
|
1093
1287
|
): this;
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
eventName: E,
|
|
1288
|
+
once(
|
|
1289
|
+
event: "stream",
|
|
1097
1290
|
listener: (
|
|
1098
|
-
|
|
1291
|
+
stream: ServerHttp2Stream,
|
|
1292
|
+
headers: IncomingHttpHeaders,
|
|
1293
|
+
flags: number,
|
|
1294
|
+
rawHeaders: string[],
|
|
1099
1295
|
) => void,
|
|
1100
1296
|
): this;
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1297
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1298
|
+
prependListener(
|
|
1299
|
+
event: "connect",
|
|
1104
1300
|
listener: (
|
|
1105
|
-
|
|
1301
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1302
|
+
socket: net.Socket | tls.TLSSocket,
|
|
1106
1303
|
) => void,
|
|
1107
1304
|
): this;
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
eventName: E,
|
|
1305
|
+
prependListener(
|
|
1306
|
+
event: "stream",
|
|
1111
1307
|
listener: (
|
|
1112
|
-
|
|
1308
|
+
stream: ServerHttp2Stream,
|
|
1309
|
+
headers: IncomingHttpHeaders,
|
|
1310
|
+
flags: number,
|
|
1311
|
+
rawHeaders: string[],
|
|
1113
1312
|
) => void,
|
|
1114
1313
|
): this;
|
|
1115
|
-
prependListener(
|
|
1116
|
-
prependOnceListener
|
|
1117
|
-
|
|
1314
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1315
|
+
prependOnceListener(
|
|
1316
|
+
event: "connect",
|
|
1118
1317
|
listener: (
|
|
1119
|
-
|
|
1318
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1319
|
+
socket: net.Socket | tls.TLSSocket,
|
|
1120
1320
|
) => void,
|
|
1121
1321
|
): this;
|
|
1122
|
-
prependOnceListener(
|
|
1123
|
-
|
|
1124
|
-
eventName: E,
|
|
1125
|
-
): ((
|
|
1126
|
-
...args: ServerHttp2SessionEventMap<Http1Request, Http1Response, Http2Request, Http2Response>[E]
|
|
1127
|
-
) => void)[];
|
|
1128
|
-
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
1129
|
-
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
1130
|
-
removeAllListeners<E extends keyof ServerHttp2SessionEventMap>(eventName?: E): this;
|
|
1131
|
-
removeAllListeners(eventName?: string | symbol): this;
|
|
1132
|
-
removeListener<E extends keyof ServerHttp2SessionEventMap>(
|
|
1133
|
-
eventName: E,
|
|
1322
|
+
prependOnceListener(
|
|
1323
|
+
event: "stream",
|
|
1134
1324
|
listener: (
|
|
1135
|
-
|
|
1325
|
+
stream: ServerHttp2Stream,
|
|
1326
|
+
headers: IncomingHttpHeaders,
|
|
1327
|
+
flags: number,
|
|
1328
|
+
rawHeaders: string[],
|
|
1136
1329
|
) => void,
|
|
1137
1330
|
): this;
|
|
1138
|
-
|
|
1139
|
-
// #endregion
|
|
1331
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1140
1332
|
}
|
|
1141
1333
|
// Http2Server
|
|
1142
|
-
interface SessionOptions {
|
|
1334
|
+
export interface SessionOptions {
|
|
1143
1335
|
/**
|
|
1144
1336
|
* Sets the maximum dynamic table size for deflating header fields.
|
|
1145
1337
|
* @default 4Kib
|
|
@@ -1169,11 +1361,6 @@ declare module "node:http2" {
|
|
|
1169
1361
|
* @default 128
|
|
1170
1362
|
*/
|
|
1171
1363
|
maxHeaderListPairs?: number | undefined;
|
|
1172
|
-
/**
|
|
1173
|
-
* Sets the maximum number of uniq origin the sever
|
|
1174
|
-
* can send via ORIGIN frames. **Default:** `128`.
|
|
1175
|
-
*/
|
|
1176
|
-
maxOriginSetSize?: number | undefined;
|
|
1177
1364
|
/**
|
|
1178
1365
|
* Sets the maximum number of outstanding, unacknowledged pings.
|
|
1179
1366
|
* @default 10
|
|
@@ -1222,7 +1409,7 @@ declare module "node:http2" {
|
|
|
1222
1409
|
*/
|
|
1223
1410
|
strictFieldWhitespaceValidation?: boolean | undefined;
|
|
1224
1411
|
}
|
|
1225
|
-
interface ClientSessionOptions extends SessionOptions {
|
|
1412
|
+
export interface ClientSessionOptions extends SessionOptions {
|
|
1226
1413
|
/**
|
|
1227
1414
|
* Sets the maximum number of reserved push streams the client will accept at any given time.
|
|
1228
1415
|
* Once the current number of currently reserved push streams exceeds reaches this limit,
|
|
@@ -1244,7 +1431,7 @@ declare module "node:http2" {
|
|
|
1244
1431
|
*/
|
|
1245
1432
|
protocol?: "http:" | "https:" | undefined;
|
|
1246
1433
|
}
|
|
1247
|
-
interface ServerSessionOptions<
|
|
1434
|
+
export interface ServerSessionOptions<
|
|
1248
1435
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1249
1436
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1250
1437
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
@@ -1254,29 +1441,25 @@ declare module "node:http2" {
|
|
|
1254
1441
|
maxSessionInvalidFrames?: number | undefined;
|
|
1255
1442
|
streamResetBurst?: number | undefined;
|
|
1256
1443
|
streamResetRate?: number | undefined;
|
|
1257
|
-
/** @deprecated Use `http1Options.IncomingMessage` instead. */
|
|
1258
1444
|
Http1IncomingMessage?: Http1Request | undefined;
|
|
1259
|
-
/** @deprecated Use `http1Options.ServerResponse` instead. */
|
|
1260
1445
|
Http1ServerResponse?: Http1Response | undefined;
|
|
1261
|
-
http1Options?: Http1Options<Http1Request, Http1Response> | undefined;
|
|
1262
1446
|
Http2ServerRequest?: Http2Request | undefined;
|
|
1263
1447
|
Http2ServerResponse?: Http2Response | undefined;
|
|
1264
|
-
strictSingleValueFields?: boolean | undefined;
|
|
1265
1448
|
}
|
|
1266
|
-
interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {}
|
|
1267
|
-
interface SecureServerSessionOptions<
|
|
1449
|
+
export interface SecureClientSessionOptions extends ClientSessionOptions, tls.ConnectionOptions {}
|
|
1450
|
+
export interface SecureServerSessionOptions<
|
|
1268
1451
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1269
1452
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1270
1453
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
1271
1454
|
Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
|
|
1272
1455
|
> extends ServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response>, tls.TlsOptions {}
|
|
1273
|
-
interface ServerOptions<
|
|
1456
|
+
export interface ServerOptions<
|
|
1274
1457
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1275
1458
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1276
1459
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
1277
1460
|
Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
|
|
1278
1461
|
> extends ServerSessionOptions<Http1Request, Http1Response, Http2Request, Http2Response> {}
|
|
1279
|
-
interface SecureServerOptions<
|
|
1462
|
+
export interface SecureServerOptions<
|
|
1280
1463
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1281
1464
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1282
1465
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
@@ -1285,15 +1468,7 @@ declare module "node:http2" {
|
|
|
1285
1468
|
allowHTTP1?: boolean | undefined;
|
|
1286
1469
|
origins?: string[] | undefined;
|
|
1287
1470
|
}
|
|
1288
|
-
interface
|
|
1289
|
-
Request extends typeof IncomingMessage,
|
|
1290
|
-
Response extends typeof ServerResponse<InstanceType<Request>>,
|
|
1291
|
-
> {
|
|
1292
|
-
IncomingMessage?: Request | undefined;
|
|
1293
|
-
ServerResponse?: Response | undefined;
|
|
1294
|
-
keepAliveTimeout?: number | undefined;
|
|
1295
|
-
}
|
|
1296
|
-
interface Http2ServerCommon {
|
|
1471
|
+
interface HTTP2ServerCommon {
|
|
1297
1472
|
setTimeout(msec?: number, callback?: () => void): this;
|
|
1298
1473
|
/**
|
|
1299
1474
|
* Throws ERR_HTTP2_INVALID_SETTING_VALUE for invalid settings values.
|
|
@@ -1301,197 +1476,342 @@ declare module "node:http2" {
|
|
|
1301
1476
|
*/
|
|
1302
1477
|
updateSettings(settings: Settings): void;
|
|
1303
1478
|
}
|
|
1304
|
-
interface
|
|
1479
|
+
export interface Http2Server<
|
|
1305
1480
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1306
1481
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1307
1482
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
1308
1483
|
Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
|
|
1309
|
-
> extends net.
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1484
|
+
> extends net.Server, HTTP2ServerCommon {
|
|
1485
|
+
addListener(
|
|
1486
|
+
event: "checkContinue",
|
|
1487
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1488
|
+
): this;
|
|
1489
|
+
addListener(
|
|
1490
|
+
event: "request",
|
|
1491
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1492
|
+
): this;
|
|
1493
|
+
addListener(
|
|
1494
|
+
event: "session",
|
|
1495
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1496
|
+
): this;
|
|
1497
|
+
addListener(
|
|
1498
|
+
event: "sessionError",
|
|
1499
|
+
listener: (
|
|
1500
|
+
err: Error,
|
|
1501
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1502
|
+
) => void,
|
|
1503
|
+
): this;
|
|
1504
|
+
addListener(
|
|
1505
|
+
event: "stream",
|
|
1506
|
+
listener: (
|
|
1507
|
+
stream: ServerHttp2Stream,
|
|
1508
|
+
headers: IncomingHttpHeaders,
|
|
1509
|
+
flags: number,
|
|
1510
|
+
rawHeaders: string[],
|
|
1511
|
+
) => void,
|
|
1512
|
+
): this;
|
|
1513
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
1514
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1515
|
+
emit(
|
|
1516
|
+
event: "checkContinue",
|
|
1517
|
+
request: InstanceType<Http2Request>,
|
|
1518
|
+
response: InstanceType<Http2Response>,
|
|
1519
|
+
): boolean;
|
|
1520
|
+
emit(event: "request", request: InstanceType<Http2Request>, response: InstanceType<Http2Response>): boolean;
|
|
1521
|
+
emit(
|
|
1522
|
+
event: "session",
|
|
1523
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1524
|
+
): boolean;
|
|
1525
|
+
emit(
|
|
1526
|
+
event: "sessionError",
|
|
1314
1527
|
err: Error,
|
|
1315
1528
|
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1529
|
+
): boolean;
|
|
1530
|
+
emit(
|
|
1531
|
+
event: "stream",
|
|
1532
|
+
stream: ServerHttp2Stream,
|
|
1533
|
+
headers: IncomingHttpHeaders,
|
|
1534
|
+
flags: number,
|
|
1535
|
+
rawHeaders: string[],
|
|
1536
|
+
): boolean;
|
|
1537
|
+
emit(event: "timeout"): boolean;
|
|
1538
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
1539
|
+
on(
|
|
1540
|
+
event: "checkContinue",
|
|
1541
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1542
|
+
): this;
|
|
1543
|
+
on(
|
|
1544
|
+
event: "request",
|
|
1545
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1546
|
+
): this;
|
|
1547
|
+
on(
|
|
1548
|
+
event: "session",
|
|
1549
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1550
|
+
): this;
|
|
1551
|
+
on(
|
|
1552
|
+
event: "sessionError",
|
|
1327
1553
|
listener: (
|
|
1328
|
-
|
|
1554
|
+
err: Error,
|
|
1555
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1329
1556
|
) => void,
|
|
1330
1557
|
): this;
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
eventName: E,
|
|
1339
|
-
listener?: (
|
|
1340
|
-
...args: Http2ServerEventMap<Http1Request, Http1Response, Http2Request, Http2Response>[E]
|
|
1558
|
+
on(
|
|
1559
|
+
event: "stream",
|
|
1560
|
+
listener: (
|
|
1561
|
+
stream: ServerHttp2Stream,
|
|
1562
|
+
headers: IncomingHttpHeaders,
|
|
1563
|
+
flags: number,
|
|
1564
|
+
rawHeaders: string[],
|
|
1341
1565
|
) => void,
|
|
1342
|
-
):
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1566
|
+
): this;
|
|
1567
|
+
on(event: "timeout", listener: () => void): this;
|
|
1568
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1569
|
+
once(
|
|
1570
|
+
event: "checkContinue",
|
|
1571
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1572
|
+
): this;
|
|
1573
|
+
once(
|
|
1574
|
+
event: "request",
|
|
1575
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1576
|
+
): this;
|
|
1577
|
+
once(
|
|
1578
|
+
event: "session",
|
|
1579
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1580
|
+
): this;
|
|
1581
|
+
once(
|
|
1582
|
+
event: "sessionError",
|
|
1350
1583
|
listener: (
|
|
1351
|
-
|
|
1584
|
+
err: Error,
|
|
1585
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1352
1586
|
) => void,
|
|
1353
1587
|
): this;
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
eventName: E,
|
|
1588
|
+
once(
|
|
1589
|
+
event: "stream",
|
|
1357
1590
|
listener: (
|
|
1358
|
-
|
|
1591
|
+
stream: ServerHttp2Stream,
|
|
1592
|
+
headers: IncomingHttpHeaders,
|
|
1593
|
+
flags: number,
|
|
1594
|
+
rawHeaders: string[],
|
|
1359
1595
|
) => void,
|
|
1360
1596
|
): this;
|
|
1361
|
-
|
|
1362
|
-
once
|
|
1363
|
-
|
|
1597
|
+
once(event: "timeout", listener: () => void): this;
|
|
1598
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1599
|
+
prependListener(
|
|
1600
|
+
event: "checkContinue",
|
|
1601
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1602
|
+
): this;
|
|
1603
|
+
prependListener(
|
|
1604
|
+
event: "request",
|
|
1605
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1606
|
+
): this;
|
|
1607
|
+
prependListener(
|
|
1608
|
+
event: "session",
|
|
1609
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1610
|
+
): this;
|
|
1611
|
+
prependListener(
|
|
1612
|
+
event: "sessionError",
|
|
1364
1613
|
listener: (
|
|
1365
|
-
|
|
1614
|
+
err: Error,
|
|
1615
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1366
1616
|
) => void,
|
|
1367
1617
|
): this;
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
eventName: E,
|
|
1618
|
+
prependListener(
|
|
1619
|
+
event: "stream",
|
|
1371
1620
|
listener: (
|
|
1372
|
-
|
|
1621
|
+
stream: ServerHttp2Stream,
|
|
1622
|
+
headers: IncomingHttpHeaders,
|
|
1623
|
+
flags: number,
|
|
1624
|
+
rawHeaders: string[],
|
|
1373
1625
|
) => void,
|
|
1374
1626
|
): this;
|
|
1375
|
-
prependListener(
|
|
1376
|
-
|
|
1377
|
-
|
|
1627
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
1628
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1629
|
+
prependOnceListener(
|
|
1630
|
+
event: "checkContinue",
|
|
1631
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1632
|
+
): this;
|
|
1633
|
+
prependOnceListener(
|
|
1634
|
+
event: "request",
|
|
1635
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1636
|
+
): this;
|
|
1637
|
+
prependOnceListener(
|
|
1638
|
+
event: "session",
|
|
1639
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1640
|
+
): this;
|
|
1641
|
+
prependOnceListener(
|
|
1642
|
+
event: "sessionError",
|
|
1378
1643
|
listener: (
|
|
1379
|
-
|
|
1644
|
+
err: Error,
|
|
1645
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1380
1646
|
) => void,
|
|
1381
1647
|
): this;
|
|
1382
|
-
prependOnceListener(
|
|
1383
|
-
|
|
1384
|
-
eventName: E,
|
|
1385
|
-
): ((...args: Http2ServerEventMap<Http1Request, Http1Response, Http2Request, Http2Response>[E]) => void)[];
|
|
1386
|
-
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
1387
|
-
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
1388
|
-
removeAllListeners<E extends keyof Http2ServerEventMap>(eventName?: E): this;
|
|
1389
|
-
removeAllListeners(eventName?: string | symbol): this;
|
|
1390
|
-
removeListener<E extends keyof Http2ServerEventMap>(
|
|
1391
|
-
eventName: E,
|
|
1648
|
+
prependOnceListener(
|
|
1649
|
+
event: "stream",
|
|
1392
1650
|
listener: (
|
|
1393
|
-
|
|
1651
|
+
stream: ServerHttp2Stream,
|
|
1652
|
+
headers: IncomingHttpHeaders,
|
|
1653
|
+
flags: number,
|
|
1654
|
+
rawHeaders: string[],
|
|
1394
1655
|
) => void,
|
|
1395
1656
|
): this;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1399
|
-
interface Http2SecureServerEventMap<
|
|
1400
|
-
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1401
|
-
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1402
|
-
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
1403
|
-
Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
|
|
1404
|
-
> extends tls.ServerEventMap, Http2ServerEventMap<Http1Request, Http1Response, Http2Request, Http2Response> {
|
|
1405
|
-
"unknownProtocol": [socket: tls.TLSSocket];
|
|
1657
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
1658
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1406
1659
|
}
|
|
1407
|
-
interface Http2SecureServer<
|
|
1660
|
+
export interface Http2SecureServer<
|
|
1408
1661
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
1409
1662
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
1410
1663
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
1411
1664
|
Http2Response extends typeof Http2ServerResponse<InstanceType<Http2Request>> = typeof Http2ServerResponse,
|
|
1412
|
-
> extends tls.Server,
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1665
|
+
> extends tls.Server, HTTP2ServerCommon {
|
|
1666
|
+
addListener(
|
|
1667
|
+
event: "checkContinue",
|
|
1668
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1669
|
+
): this;
|
|
1670
|
+
addListener(
|
|
1671
|
+
event: "request",
|
|
1672
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1673
|
+
): this;
|
|
1674
|
+
addListener(
|
|
1675
|
+
event: "session",
|
|
1676
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1677
|
+
): this;
|
|
1678
|
+
addListener(
|
|
1679
|
+
event: "sessionError",
|
|
1416
1680
|
listener: (
|
|
1417
|
-
|
|
1681
|
+
err: Error,
|
|
1682
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1418
1683
|
) => void,
|
|
1419
1684
|
): this;
|
|
1420
|
-
addListener(
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1685
|
+
addListener(
|
|
1686
|
+
event: "stream",
|
|
1687
|
+
listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
|
|
1688
|
+
): this;
|
|
1689
|
+
addListener(event: "timeout", listener: () => void): this;
|
|
1690
|
+
addListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
1691
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1692
|
+
emit(
|
|
1693
|
+
event: "checkContinue",
|
|
1694
|
+
request: InstanceType<Http2Request>,
|
|
1695
|
+
response: InstanceType<Http2Response>,
|
|
1424
1696
|
): boolean;
|
|
1425
|
-
emit(
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
):
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
listener: (
|
|
1442
|
-
...args: Http2SecureServerEventMap<Http1Request, Http1Response, Http2Request, Http2Response>[E]
|
|
1443
|
-
) => void,
|
|
1697
|
+
emit(event: "request", request: InstanceType<Http2Request>, response: InstanceType<Http2Response>): boolean;
|
|
1698
|
+
emit(
|
|
1699
|
+
event: "session",
|
|
1700
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1701
|
+
): boolean;
|
|
1702
|
+
emit(
|
|
1703
|
+
event: "sessionError",
|
|
1704
|
+
err: Error,
|
|
1705
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1706
|
+
): boolean;
|
|
1707
|
+
emit(event: "stream", stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number): boolean;
|
|
1708
|
+
emit(event: "timeout"): boolean;
|
|
1709
|
+
emit(event: "unknownProtocol", socket: tls.TLSSocket): boolean;
|
|
1710
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
1711
|
+
on(
|
|
1712
|
+
event: "checkContinue",
|
|
1713
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1444
1714
|
): this;
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1715
|
+
on(
|
|
1716
|
+
event: "request",
|
|
1717
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1718
|
+
): this;
|
|
1719
|
+
on(
|
|
1720
|
+
event: "session",
|
|
1721
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1451
1722
|
): this;
|
|
1452
|
-
on(
|
|
1453
|
-
|
|
1454
|
-
eventName: E,
|
|
1723
|
+
on(
|
|
1724
|
+
event: "sessionError",
|
|
1455
1725
|
listener: (
|
|
1456
|
-
|
|
1726
|
+
err: Error,
|
|
1727
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1457
1728
|
) => void,
|
|
1458
1729
|
): this;
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1730
|
+
on(
|
|
1731
|
+
event: "stream",
|
|
1732
|
+
listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
|
|
1733
|
+
): this;
|
|
1734
|
+
on(event: "timeout", listener: () => void): this;
|
|
1735
|
+
on(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
1736
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1737
|
+
once(
|
|
1738
|
+
event: "checkContinue",
|
|
1739
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1740
|
+
): this;
|
|
1741
|
+
once(
|
|
1742
|
+
event: "request",
|
|
1743
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1744
|
+
): this;
|
|
1745
|
+
once(
|
|
1746
|
+
event: "session",
|
|
1747
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1748
|
+
): this;
|
|
1749
|
+
once(
|
|
1750
|
+
event: "sessionError",
|
|
1462
1751
|
listener: (
|
|
1463
|
-
|
|
1752
|
+
err: Error,
|
|
1753
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1464
1754
|
) => void,
|
|
1465
1755
|
): this;
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1756
|
+
once(
|
|
1757
|
+
event: "stream",
|
|
1758
|
+
listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
|
|
1759
|
+
): this;
|
|
1760
|
+
once(event: "timeout", listener: () => void): this;
|
|
1761
|
+
once(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
1762
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1763
|
+
prependListener(
|
|
1764
|
+
event: "checkContinue",
|
|
1765
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1766
|
+
): this;
|
|
1767
|
+
prependListener(
|
|
1768
|
+
event: "request",
|
|
1769
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1770
|
+
): this;
|
|
1771
|
+
prependListener(
|
|
1772
|
+
event: "session",
|
|
1773
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1774
|
+
): this;
|
|
1775
|
+
prependListener(
|
|
1776
|
+
event: "sessionError",
|
|
1469
1777
|
listener: (
|
|
1470
|
-
|
|
1778
|
+
err: Error,
|
|
1779
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1471
1780
|
) => void,
|
|
1472
1781
|
): this;
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
):
|
|
1477
|
-
|
|
1478
|
-
) => void)
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1782
|
+
prependListener(
|
|
1783
|
+
event: "stream",
|
|
1784
|
+
listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
|
|
1785
|
+
): this;
|
|
1786
|
+
prependListener(event: "timeout", listener: () => void): this;
|
|
1787
|
+
prependListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
1788
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1789
|
+
prependOnceListener(
|
|
1790
|
+
event: "checkContinue",
|
|
1791
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1792
|
+
): this;
|
|
1793
|
+
prependOnceListener(
|
|
1794
|
+
event: "request",
|
|
1795
|
+
listener: (request: InstanceType<Http2Request>, response: InstanceType<Http2Response>) => void,
|
|
1796
|
+
): this;
|
|
1797
|
+
prependOnceListener(
|
|
1798
|
+
event: "session",
|
|
1799
|
+
listener: (session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>) => void,
|
|
1800
|
+
): this;
|
|
1801
|
+
prependOnceListener(
|
|
1802
|
+
event: "sessionError",
|
|
1485
1803
|
listener: (
|
|
1486
|
-
|
|
1804
|
+
err: Error,
|
|
1805
|
+
session: ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>,
|
|
1487
1806
|
) => void,
|
|
1488
1807
|
): this;
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
"
|
|
1494
|
-
"
|
|
1808
|
+
prependOnceListener(
|
|
1809
|
+
event: "stream",
|
|
1810
|
+
listener: (stream: ServerHttp2Stream, headers: IncomingHttpHeaders, flags: number) => void,
|
|
1811
|
+
): this;
|
|
1812
|
+
prependOnceListener(event: "timeout", listener: () => void): this;
|
|
1813
|
+
prependOnceListener(event: "unknownProtocol", listener: (socket: tls.TLSSocket) => void): this;
|
|
1814
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1495
1815
|
}
|
|
1496
1816
|
/**
|
|
1497
1817
|
* A `Http2ServerRequest` object is created by {@link Server} or {@link SecureServer} and passed as the first argument to the `'request'` event. It may be used to access a request status,
|
|
@@ -1499,7 +1819,7 @@ declare module "node:http2" {
|
|
|
1499
1819
|
* data.
|
|
1500
1820
|
* @since v8.4.0
|
|
1501
1821
|
*/
|
|
1502
|
-
class Http2ServerRequest extends stream.Readable {
|
|
1822
|
+
export class Http2ServerRequest extends stream.Readable {
|
|
1503
1823
|
constructor(
|
|
1504
1824
|
stream: ServerHttp2Stream,
|
|
1505
1825
|
headers: IncomingHttpHeaders,
|
|
@@ -1652,8 +1972,8 @@ declare module "node:http2" {
|
|
|
1652
1972
|
*
|
|
1653
1973
|
* Then `request.url` will be:
|
|
1654
1974
|
*
|
|
1655
|
-
* ```
|
|
1656
|
-
*
|
|
1975
|
+
* ```js
|
|
1976
|
+
* '/status?name=ryan'
|
|
1657
1977
|
* ```
|
|
1658
1978
|
*
|
|
1659
1979
|
* To parse the url into its parts, `new URL()` can be used:
|
|
@@ -1690,69 +2010,56 @@ declare module "node:http2" {
|
|
|
1690
2010
|
* @since v8.4.0
|
|
1691
2011
|
*/
|
|
1692
2012
|
setTimeout(msecs: number, callback?: () => void): void;
|
|
1693
|
-
read(size?: number):
|
|
1694
|
-
|
|
1695
|
-
addListener
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
): this;
|
|
1699
|
-
addListener(
|
|
1700
|
-
|
|
1701
|
-
emit(
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
):
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
): this;
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
): this;
|
|
1720
|
-
|
|
1721
|
-
once
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
): this;
|
|
1725
|
-
|
|
1726
|
-
prependListener
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
): this;
|
|
1730
|
-
|
|
1731
|
-
prependOnceListener
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
): this;
|
|
1735
|
-
prependOnceListener(
|
|
1736
|
-
rawListeners<E extends keyof Http2ServerRequestEventMap>(
|
|
1737
|
-
eventName: E,
|
|
1738
|
-
): ((...args: Http2ServerRequestEventMap[E]) => void)[];
|
|
1739
|
-
rawListeners(eventName: string | symbol): ((...args: any[]) => void)[];
|
|
1740
|
-
// eslint-disable-next-line @definitelytyped/no-unnecessary-generics
|
|
1741
|
-
removeAllListeners<E extends keyof Http2ServerRequestEventMap>(eventName?: E): this;
|
|
1742
|
-
removeAllListeners(eventName?: string | symbol): this;
|
|
1743
|
-
removeListener<E extends keyof Http2ServerRequestEventMap>(
|
|
1744
|
-
eventName: E,
|
|
1745
|
-
listener: (...args: Http2ServerRequestEventMap[E]) => void,
|
|
1746
|
-
): this;
|
|
1747
|
-
removeListener(eventName: string | symbol, listener: (...args: any[]) => void): this;
|
|
1748
|
-
// #endregion
|
|
2013
|
+
read(size?: number): NonSharedBuffer | string | null;
|
|
2014
|
+
addListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
|
|
2015
|
+
addListener(event: "close", listener: () => void): this;
|
|
2016
|
+
addListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
2017
|
+
addListener(event: "end", listener: () => void): this;
|
|
2018
|
+
addListener(event: "readable", listener: () => void): this;
|
|
2019
|
+
addListener(event: "error", listener: (err: Error) => void): this;
|
|
2020
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2021
|
+
emit(event: "aborted", hadError: boolean, code: number): boolean;
|
|
2022
|
+
emit(event: "close"): boolean;
|
|
2023
|
+
emit(event: "data", chunk: NonSharedBuffer | string): boolean;
|
|
2024
|
+
emit(event: "end"): boolean;
|
|
2025
|
+
emit(event: "readable"): boolean;
|
|
2026
|
+
emit(event: "error", err: Error): boolean;
|
|
2027
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2028
|
+
on(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
|
|
2029
|
+
on(event: "close", listener: () => void): this;
|
|
2030
|
+
on(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
2031
|
+
on(event: "end", listener: () => void): this;
|
|
2032
|
+
on(event: "readable", listener: () => void): this;
|
|
2033
|
+
on(event: "error", listener: (err: Error) => void): this;
|
|
2034
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2035
|
+
once(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
|
|
2036
|
+
once(event: "close", listener: () => void): this;
|
|
2037
|
+
once(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
2038
|
+
once(event: "end", listener: () => void): this;
|
|
2039
|
+
once(event: "readable", listener: () => void): this;
|
|
2040
|
+
once(event: "error", listener: (err: Error) => void): this;
|
|
2041
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2042
|
+
prependListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
|
|
2043
|
+
prependListener(event: "close", listener: () => void): this;
|
|
2044
|
+
prependListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
2045
|
+
prependListener(event: "end", listener: () => void): this;
|
|
2046
|
+
prependListener(event: "readable", listener: () => void): this;
|
|
2047
|
+
prependListener(event: "error", listener: (err: Error) => void): this;
|
|
2048
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2049
|
+
prependOnceListener(event: "aborted", listener: (hadError: boolean, code: number) => void): this;
|
|
2050
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
2051
|
+
prependOnceListener(event: "data", listener: (chunk: NonSharedBuffer | string) => void): this;
|
|
2052
|
+
prependOnceListener(event: "end", listener: () => void): this;
|
|
2053
|
+
prependOnceListener(event: "readable", listener: () => void): this;
|
|
2054
|
+
prependOnceListener(event: "error", listener: (err: Error) => void): this;
|
|
2055
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
1749
2056
|
}
|
|
1750
2057
|
/**
|
|
1751
2058
|
* This object is created internally by an HTTP server, not by the user. It is
|
|
1752
2059
|
* passed as the second parameter to the `'request'` event.
|
|
1753
2060
|
* @since v8.4.0
|
|
1754
2061
|
*/
|
|
1755
|
-
class Http2ServerResponse<Request extends Http2ServerRequest = Http2ServerRequest> extends stream.Writable {
|
|
2062
|
+
export class Http2ServerResponse<Request extends Http2ServerRequest = Http2ServerRequest> extends stream.Writable {
|
|
1756
2063
|
constructor(stream: ServerHttp2Stream);
|
|
1757
2064
|
/**
|
|
1758
2065
|
* See `response.socket`.
|
|
@@ -1768,7 +2075,7 @@ declare module "node:http2" {
|
|
|
1768
2075
|
* If there were no previous values for the header, this is equivalent to calling {@link setHeader}.
|
|
1769
2076
|
*
|
|
1770
2077
|
* Attempting to set a header field name or value that contains invalid characters will result in a
|
|
1771
|
-
* [TypeError](https://nodejs.org/docs/latest-
|
|
2078
|
+
* [TypeError](https://nodejs.org/docs/latest-v22.x/api/errors.html#class-typeerror) being thrown.
|
|
1772
2079
|
*
|
|
1773
2080
|
* ```js
|
|
1774
2081
|
* // Returns headers including "set-cookie: a" and "set-cookie: b"
|
|
@@ -2116,8 +2423,50 @@ declare module "node:http2" {
|
|
|
2116
2423
|
headers: OutgoingHttpHeaders,
|
|
2117
2424
|
callback: (err: Error | null, res: Http2ServerResponse) => void,
|
|
2118
2425
|
): void;
|
|
2426
|
+
addListener(event: "close", listener: () => void): this;
|
|
2427
|
+
addListener(event: "drain", listener: () => void): this;
|
|
2428
|
+
addListener(event: "error", listener: (error: Error) => void): this;
|
|
2429
|
+
addListener(event: "finish", listener: () => void): this;
|
|
2430
|
+
addListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
2431
|
+
addListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
2432
|
+
addListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2433
|
+
emit(event: "close"): boolean;
|
|
2434
|
+
emit(event: "drain"): boolean;
|
|
2435
|
+
emit(event: "error", error: Error): boolean;
|
|
2436
|
+
emit(event: "finish"): boolean;
|
|
2437
|
+
emit(event: "pipe", src: stream.Readable): boolean;
|
|
2438
|
+
emit(event: "unpipe", src: stream.Readable): boolean;
|
|
2439
|
+
emit(event: string | symbol, ...args: any[]): boolean;
|
|
2440
|
+
on(event: "close", listener: () => void): this;
|
|
2441
|
+
on(event: "drain", listener: () => void): this;
|
|
2442
|
+
on(event: "error", listener: (error: Error) => void): this;
|
|
2443
|
+
on(event: "finish", listener: () => void): this;
|
|
2444
|
+
on(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
2445
|
+
on(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
2446
|
+
on(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2447
|
+
once(event: "close", listener: () => void): this;
|
|
2448
|
+
once(event: "drain", listener: () => void): this;
|
|
2449
|
+
once(event: "error", listener: (error: Error) => void): this;
|
|
2450
|
+
once(event: "finish", listener: () => void): this;
|
|
2451
|
+
once(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
2452
|
+
once(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
2453
|
+
once(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2454
|
+
prependListener(event: "close", listener: () => void): this;
|
|
2455
|
+
prependListener(event: "drain", listener: () => void): this;
|
|
2456
|
+
prependListener(event: "error", listener: (error: Error) => void): this;
|
|
2457
|
+
prependListener(event: "finish", listener: () => void): this;
|
|
2458
|
+
prependListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
2459
|
+
prependListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
2460
|
+
prependListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2461
|
+
prependOnceListener(event: "close", listener: () => void): this;
|
|
2462
|
+
prependOnceListener(event: "drain", listener: () => void): this;
|
|
2463
|
+
prependOnceListener(event: "error", listener: (error: Error) => void): this;
|
|
2464
|
+
prependOnceListener(event: "finish", listener: () => void): this;
|
|
2465
|
+
prependOnceListener(event: "pipe", listener: (src: stream.Readable) => void): this;
|
|
2466
|
+
prependOnceListener(event: "unpipe", listener: (src: stream.Readable) => void): this;
|
|
2467
|
+
prependOnceListener(event: string | symbol, listener: (...args: any[]) => void): this;
|
|
2119
2468
|
}
|
|
2120
|
-
namespace constants {
|
|
2469
|
+
export namespace constants {
|
|
2121
2470
|
const NGHTTP2_SESSION_SERVER: number;
|
|
2122
2471
|
const NGHTTP2_SESSION_CLIENT: number;
|
|
2123
2472
|
const NGHTTP2_STREAM_STATE_IDLE: number;
|
|
@@ -2337,13 +2686,13 @@ declare module "node:http2" {
|
|
|
2337
2686
|
* This symbol can be set as a property on the HTTP/2 headers object with
|
|
2338
2687
|
* an array value in order to provide a list of headers considered sensitive.
|
|
2339
2688
|
*/
|
|
2340
|
-
const sensitiveHeaders: symbol;
|
|
2689
|
+
export const sensitiveHeaders: symbol;
|
|
2341
2690
|
/**
|
|
2342
2691
|
* Returns an object containing the default settings for an `Http2Session` instance. This method returns a new object instance every time it is called
|
|
2343
2692
|
* so instances returned may be safely modified for use.
|
|
2344
2693
|
* @since v8.4.0
|
|
2345
2694
|
*/
|
|
2346
|
-
function getDefaultSettings(): Settings;
|
|
2695
|
+
export function getDefaultSettings(): Settings;
|
|
2347
2696
|
/**
|
|
2348
2697
|
* Returns a `Buffer` instance containing serialized representation of the given
|
|
2349
2698
|
* HTTP/2 settings as specified in the [HTTP/2](https://tools.ietf.org/html/rfc7540) specification. This is intended
|
|
@@ -2359,14 +2708,14 @@ declare module "node:http2" {
|
|
|
2359
2708
|
* ```
|
|
2360
2709
|
* @since v8.4.0
|
|
2361
2710
|
*/
|
|
2362
|
-
function getPackedSettings(settings: Settings): NonSharedBuffer;
|
|
2711
|
+
export function getPackedSettings(settings: Settings): NonSharedBuffer;
|
|
2363
2712
|
/**
|
|
2364
2713
|
* Returns a `HTTP/2 Settings Object` containing the deserialized settings from
|
|
2365
2714
|
* the given `Buffer` as generated by `http2.getPackedSettings()`.
|
|
2366
2715
|
* @since v8.4.0
|
|
2367
2716
|
* @param buf The packed settings.
|
|
2368
2717
|
*/
|
|
2369
|
-
function getUnpackedSettings(buf: Uint8Array): Settings;
|
|
2718
|
+
export function getUnpackedSettings(buf: Uint8Array): Settings;
|
|
2370
2719
|
/**
|
|
2371
2720
|
* Returns a `net.Server` instance that creates and manages `Http2Session` instances.
|
|
2372
2721
|
*
|
|
@@ -2396,10 +2745,10 @@ declare module "node:http2" {
|
|
|
2396
2745
|
* @since v8.4.0
|
|
2397
2746
|
* @param onRequestHandler See `Compatibility API`
|
|
2398
2747
|
*/
|
|
2399
|
-
function createServer(
|
|
2748
|
+
export function createServer(
|
|
2400
2749
|
onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void,
|
|
2401
2750
|
): Http2Server;
|
|
2402
|
-
function createServer<
|
|
2751
|
+
export function createServer<
|
|
2403
2752
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
2404
2753
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
2405
2754
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
@@ -2436,10 +2785,10 @@ declare module "node:http2" {
|
|
|
2436
2785
|
* @since v8.4.0
|
|
2437
2786
|
* @param onRequestHandler See `Compatibility API`
|
|
2438
2787
|
*/
|
|
2439
|
-
function createSecureServer(
|
|
2788
|
+
export function createSecureServer(
|
|
2440
2789
|
onRequestHandler?: (request: Http2ServerRequest, response: Http2ServerResponse) => void,
|
|
2441
2790
|
): Http2SecureServer;
|
|
2442
|
-
function createSecureServer<
|
|
2791
|
+
export function createSecureServer<
|
|
2443
2792
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
2444
2793
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
2445
2794
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
@@ -2464,11 +2813,11 @@ declare module "node:http2" {
|
|
|
2464
2813
|
* is used). Userinfo (user ID and password), path, querystring, and fragment details in the URL will be ignored.
|
|
2465
2814
|
* @param listener Will be registered as a one-time listener of the {@link 'connect'} event.
|
|
2466
2815
|
*/
|
|
2467
|
-
function connect(
|
|
2816
|
+
export function connect(
|
|
2468
2817
|
authority: string | url.URL,
|
|
2469
2818
|
listener: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
|
|
2470
2819
|
): ClientHttp2Session;
|
|
2471
|
-
function connect(
|
|
2820
|
+
export function connect(
|
|
2472
2821
|
authority: string | url.URL,
|
|
2473
2822
|
options?: ClientSessionOptions | SecureClientSessionOptions,
|
|
2474
2823
|
listener?: (session: ClientHttp2Session, socket: net.Socket | tls.TLSSocket) => void,
|
|
@@ -2479,7 +2828,7 @@ declare module "node:http2" {
|
|
|
2479
2828
|
* @param options Any `{@link createServer}` options can be provided.
|
|
2480
2829
|
* @since v20.12.0
|
|
2481
2830
|
*/
|
|
2482
|
-
function performServerHandshake<
|
|
2831
|
+
export function performServerHandshake<
|
|
2483
2832
|
Http1Request extends typeof IncomingMessage = typeof IncomingMessage,
|
|
2484
2833
|
Http1Response extends typeof ServerResponse<InstanceType<Http1Request>> = typeof ServerResponse,
|
|
2485
2834
|
Http2Request extends typeof Http2ServerRequest = typeof Http2ServerRequest,
|
|
@@ -2490,8 +2839,5 @@ declare module "node:http2" {
|
|
|
2490
2839
|
): ServerHttp2Session<Http1Request, Http1Response, Http2Request, Http2Response>;
|
|
2491
2840
|
}
|
|
2492
2841
|
declare module "node:http2" {
|
|
2493
|
-
export
|
|
2494
|
-
}
|
|
2495
|
-
declare module "http2" {
|
|
2496
|
-
export * from "node:http2";
|
|
2842
|
+
export * from "http2";
|
|
2497
2843
|
}
|