@mswjs/interceptors 0.41.8 → 0.42.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +274 -228
- package/lib/browser/{bufferUtils-BiiO6HZv.mjs → buffer-utils-DJj7YzLG.js} +3 -3
- package/lib/browser/buffer-utils-DJj7YzLG.js.map +1 -0
- package/lib/browser/create-request-id-DlEd4GOA.js +184 -0
- package/lib/browser/create-request-id-DlEd4GOA.js.map +1 -0
- package/lib/browser/{getRawRequest-B1BqgWG6.mjs → fetch-utils-zxA_SD66.js} +123 -52
- package/lib/browser/fetch-utils-zxA_SD66.js.map +1 -0
- package/lib/browser/handle-request-CIOa9O-N.js +167 -0
- package/lib/browser/handle-request-CIOa9O-N.js.map +1 -0
- package/lib/{node/hasConfigurableGlobal-BiTmog1u.mjs → browser/has-configurable-global-Cew-dYqk.js} +5 -7
- package/lib/browser/has-configurable-global-Cew-dYqk.js.map +1 -0
- package/lib/browser/http-CB9rQ7i_.d.ts +105 -0
- package/lib/browser/{index.d.cts → index.d.ts} +33 -38
- package/lib/browser/index.js +130 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/interceptor-dtJZ_9QT.d.ts +50 -0
- package/lib/browser/interceptors/WebSocket/index.d.ts +2 -0
- package/lib/browser/interceptors/WebSocket/{index.mjs → index.js} +40 -31
- package/lib/browser/interceptors/WebSocket/index.js.map +1 -0
- package/lib/browser/interceptors/XMLHttpRequest/web.d.ts +11 -0
- package/lib/browser/interceptors/XMLHttpRequest/web.js +2 -0
- package/lib/browser/interceptors/fetch/web.d.ts +14 -0
- package/lib/browser/interceptors/fetch/web.js +2 -0
- package/lib/browser/presets/browser.d.ts +11 -0
- package/lib/browser/presets/browser.js +12 -0
- package/lib/browser/presets/browser.js.map +1 -0
- package/lib/browser/{resolveWebSocketUrl-C83-x9iE.mjs → resolve-web-socket-url-CSvNPLGi.js} +3 -3
- package/lib/browser/resolve-web-socket-url-CSvNPLGi.js.map +1 -0
- package/lib/browser/web-BjVDkiX0.js +248 -0
- package/lib/browser/web-BjVDkiX0.js.map +1 -0
- package/lib/{node/XMLHttpRequest-DhupxLHX.mjs → browser/web-C2oKsT3Q.js} +328 -256
- package/lib/browser/web-C2oKsT3Q.js.map +1 -0
- package/lib/browser/{interceptors/WebSocket/index.d.cts → websocket-CC0nB0md.d.ts} +41 -33
- package/lib/node/batch-interceptor-ByEZVih3.js +119 -0
- package/lib/node/batch-interceptor-ByEZVih3.js.map +1 -0
- package/lib/node/batch-interceptor-CPjFK2td.d.ts +28 -0
- package/lib/node/buffer-utils-BvPY1Tc-.js +187 -0
- package/lib/node/buffer-utils-BvPY1Tc-.js.map +1 -0
- package/lib/node/fetch-utils-Dw1PsmtX.js +568 -0
- package/lib/node/fetch-utils-Dw1PsmtX.js.map +1 -0
- package/lib/node/has-configurable-global-CJCh_g1I.js +22 -0
- package/lib/node/has-configurable-global-CJCh_g1I.js.map +1 -0
- package/lib/node/http-CB9rQ7i_.d.ts +105 -0
- package/lib/{browser/interceptors/WebSocket/index.d.mts → node/index.d.ts} +120 -60
- package/lib/node/{index.mjs → index.js} +8 -11
- package/lib/node/index.js.map +1 -0
- package/lib/node/interceptor-dtJZ_9QT.d.ts +50 -0
- package/lib/node/interceptors/ClientRequest/index.d.ts +14 -0
- package/lib/node/interceptors/ClientRequest/index.js +67 -0
- package/lib/node/interceptors/ClientRequest/index.js.map +1 -0
- package/lib/node/interceptors/XMLHttpRequest/node.d.ts +12 -0
- package/lib/node/interceptors/XMLHttpRequest/node.js +74 -0
- package/lib/node/interceptors/XMLHttpRequest/node.js.map +1 -0
- package/lib/node/interceptors/fetch/node.d.ts +18 -0
- package/lib/node/interceptors/fetch/node.js +83 -0
- package/lib/node/interceptors/fetch/node.js.map +1 -0
- package/lib/node/interceptors/http/index.d.ts +14 -0
- package/lib/node/interceptors/http/index.js +32 -0
- package/lib/node/interceptors/http/index.js.map +1 -0
- package/lib/node/interceptors/net/index.d.ts +203 -0
- package/lib/node/interceptors/net/index.js +2 -0
- package/lib/node/llhttp/constants.cjs +485 -0
- package/lib/node/llhttp/constants.d.cts +957 -0
- package/lib/node/llhttp/llhttp.wasm +0 -0
- package/lib/node/net-DtMnyEeg.js +1388 -0
- package/lib/node/net-DtMnyEeg.js.map +1 -0
- package/lib/node/presets/node.d.ts +12 -0
- package/lib/node/presets/node.js +17 -0
- package/lib/node/presets/node.js.map +1 -0
- package/lib/node/{RemoteHttpInterceptor.d.cts → remote-http-interceptor.d.ts} +12 -11
- package/lib/node/{RemoteHttpInterceptor.mjs → remote-http-interceptor.js} +38 -33
- package/lib/node/remote-http-interceptor.js.map +1 -0
- package/lib/node/source-lP0yyEtA.js +1990 -0
- package/lib/node/source-lP0yyEtA.js.map +1 -0
- package/package.json +79 -118
- package/src/batch-interceptor.test.ts +475 -0
- package/src/batch-interceptor.ts +244 -0
- package/src/{createRequestId.test.ts → create-request-id.test.ts} +1 -2
- package/src/disposable.ts +13 -0
- package/src/events/http.ts +92 -0
- package/src/events/websocket.ts +47 -0
- package/src/glossary.ts +1 -27
- package/src/index.ts +18 -10
- package/src/interceptor.test.ts +279 -0
- package/src/interceptor.ts +139 -0
- package/src/interceptors/ClientRequest/index.test.ts +21 -39
- package/src/interceptors/ClientRequest/index.ts +65 -180
- package/src/interceptors/ClientRequest/utils/{recordRawHeaders.test.ts → record-raw-headers.test.ts} +1 -2
- package/src/interceptors/ClientRequest/utils/{recordRawHeaders.ts → record-raw-headers.ts} +29 -2
- package/src/interceptors/WebSocket/index.ts +34 -51
- package/src/interceptors/WebSocket/utils/{bindEvent.test.ts → bind-event.test.ts} +1 -2
- package/src/interceptors/WebSocket/utils/events.test.ts +0 -1
- package/src/interceptors/WebSocket/{WebSocketClassTransport.ts → web-socket-class-transport.ts} +3 -3
- package/src/interceptors/WebSocket/{WebSocketClientConnection.ts → web-socket-client-connection.ts} +4 -4
- package/src/interceptors/WebSocket/{WebSocketOverride.ts → web-socket-override.ts} +6 -7
- package/src/interceptors/WebSocket/{WebSocketServerConnection.ts → web-socket-server-connection.ts} +4 -4
- package/src/interceptors/WebSocket/{WebSocketTransport.ts → web-socket-transport.ts} +1 -1
- package/src/interceptors/XMLHttpRequest/node.ts +104 -0
- package/src/interceptors/XMLHttpRequest/polyfills/{ProgressEventPolyfill.ts → progress-event-polyfill.ts} +1 -1
- package/src/interceptors/XMLHttpRequest/utils/{concateArrayBuffer.test.ts → concat-array-buffer.test.ts} +1 -2
- package/src/interceptors/XMLHttpRequest/utils/{concatArrayBuffer.ts → concat-array-buffer.ts} +1 -1
- package/src/interceptors/XMLHttpRequest/utils/{createEvent.test.ts → create-event.test.ts} +3 -4
- package/src/interceptors/XMLHttpRequest/utils/{createEvent.ts → create-event.ts} +2 -2
- package/src/interceptors/XMLHttpRequest/utils/{createResponse.ts → create-response.ts} +1 -1
- package/src/interceptors/XMLHttpRequest/utils/{getBodyByteLength.test.ts → get-body-byte-length.test.ts} +1 -2
- package/src/interceptors/XMLHttpRequest/web.ts +34 -0
- package/src/interceptors/XMLHttpRequest/{XMLHttpRequestController.ts → xml-http-request-controller.ts} +363 -204
- package/src/interceptors/XMLHttpRequest/{XMLHttpRequestProxy.ts → xml-http-request-proxy.ts} +28 -25
- package/src/interceptors/fetch/node.ts +103 -0
- package/src/interceptors/fetch/utils/{followRedirect.ts → follow-redirect.ts} +1 -1
- package/src/interceptors/fetch/web.ts +217 -0
- package/src/interceptors/http/forward-events.test.ts +86 -0
- package/src/interceptors/http/forward-events.ts +139 -0
- package/src/interceptors/http/http-parser/index.ts +310 -0
- package/src/interceptors/http/http-parser/llhttp/constants.cjs +485 -0
- package/src/interceptors/http/http-parser/llhttp/constants.d.cts +957 -0
- package/src/interceptors/http/http-parser/llhttp/llhttp.wasm +0 -0
- package/src/interceptors/http/http-parser.ts +138 -0
- package/src/interceptors/http/index.ts +34 -0
- package/src/interceptors/http/source.ts +688 -0
- package/src/interceptors/net/index.ts +368 -0
- package/src/interceptors/net/socket-controller.ts +1476 -0
- package/src/interceptors/net/utils/address-info.ts +54 -0
- package/src/interceptors/net/utils/connection-options-to-url.ts +56 -0
- package/src/interceptors/net/utils/flush-writes.ts +57 -0
- package/src/interceptors/net/utils/get-tls-connect-options.ts +23 -0
- package/src/interceptors/net/utils/normalize-net-connect-args.test.ts +233 -0
- package/src/interceptors/net/utils/normalize-net-connect-args.ts +121 -0
- package/src/interceptors/net/utils/normalize-tls-connect-args.ts +50 -0
- package/src/presets/browser.ts +4 -4
- package/src/presets/node.ts +4 -4
- package/src/{RemoteHttpInterceptor.ts → remote-http-interceptor.ts} +55 -42
- package/src/request-context.ts +40 -0
- package/src/{RequestController.test.ts → request-controller.test.ts} +37 -3
- package/src/{RequestController.ts → request-controller.ts} +33 -11
- package/src/utils/{bufferUtils.test.ts → buffer-utils.test.ts} +1 -2
- package/src/utils/buffer-utils.ts +37 -0
- package/src/utils/{cloneObject.test.ts → clone-object.test.ts} +1 -2
- package/src/utils/{cloneObject.ts → clone-object.ts} +8 -8
- package/src/utils/{createProxy.test.ts → create-proxy.test.ts} +6 -4
- package/src/utils/{createProxy.ts → create-proxy.ts} +1 -1
- package/src/utils/{fetchUtils.test.ts → fetch-utils.test.ts} +1 -1
- package/src/utils/{fetchUtils.ts → fetch-utils.ts} +28 -3
- package/src/utils/{findPropertySource.test.ts → find-property-source.test.ts} +1 -2
- package/src/utils/{getCleanUrl.test.ts → get-clean-url.test.ts} +1 -2
- package/src/utils/{getUrlByRequestOptions.test.ts → get-url-by-request-options.test.ts} +4 -8
- package/src/utils/{getUrlByRequestOptions.ts → get-url-by-request-options.ts} +16 -16
- package/src/utils/{getValueBySymbol.test.ts → get-value-by-symbol.test.ts} +1 -2
- package/src/utils/{handleRequest.ts → handle-request.ts} +66 -47
- package/src/utils/{hasConfigurableGlobal.test.ts → has-configurable-global.test.ts} +1 -2
- package/src/utils/{hasConfigurableGlobal.ts → has-configurable-global.ts} +2 -4
- package/src/utils/{isObject.test.ts → is-object.test.ts} +1 -2
- package/src/utils/logger.test.ts +154 -0
- package/src/utils/logger.ts +154 -0
- package/src/utils/{parseJson.test.ts → parse-json.test.ts} +1 -2
- package/src/utils/{patchesRegistry.test.ts → patches-registry.test.ts} +1 -1
- package/src/utils/{patchesRegistry.ts → patches-registry.ts} +1 -1
- package/src/utils/{responseUtils.ts → response-utils.ts} +25 -2
- package/ClientRequest/package.json +0 -11
- package/RemoteHttpInterceptor/package.json +0 -11
- package/WebSocket/package.json +0 -12
- package/XMLHttpRequest/package.json +0 -12
- package/fetch/package.json +0 -12
- package/lib/browser/Interceptor-Deczogc8.d.cts +0 -65
- package/lib/browser/Interceptor-gqKgs-aF.d.mts +0 -65
- package/lib/browser/XMLHttpRequest-B11I9TBx.cjs +0 -751
- package/lib/browser/XMLHttpRequest-B11I9TBx.cjs.map +0 -1
- package/lib/browser/XMLHttpRequest-DHEkSoRN.mjs +0 -746
- package/lib/browser/XMLHttpRequest-DHEkSoRN.mjs.map +0 -1
- package/lib/browser/bufferUtils-BiiO6HZv.mjs.map +0 -1
- package/lib/browser/bufferUtils-Uc0eRItL.cjs +0 -38
- package/lib/browser/bufferUtils-Uc0eRItL.cjs.map +0 -1
- package/lib/browser/createRequestId-DOf8Ktjs.cjs +0 -205
- package/lib/browser/createRequestId-DOf8Ktjs.cjs.map +0 -1
- package/lib/browser/createRequestId-DYCsFHOi.mjs +0 -170
- package/lib/browser/createRequestId-DYCsFHOi.mjs.map +0 -1
- package/lib/browser/fetch-BJwfdses.mjs +0 -236
- package/lib/browser/fetch-BJwfdses.mjs.map +0 -1
- package/lib/browser/fetch-M8iXkZ3L.cjs +0 -241
- package/lib/browser/fetch-M8iXkZ3L.cjs.map +0 -1
- package/lib/browser/getRawRequest-B1BqgWG6.mjs.map +0 -1
- package/lib/browser/getRawRequest-DdfaiPVH.cjs +0 -376
- package/lib/browser/getRawRequest-DdfaiPVH.cjs.map +0 -1
- package/lib/browser/glossary-1lhZx6Aw.d.cts +0 -69
- package/lib/browser/glossary-nkHWcwvY.d.mts +0 -69
- package/lib/browser/handleRequest-1Yqu_ho_.mjs +0 -178
- package/lib/browser/handleRequest-1Yqu_ho_.mjs.map +0 -1
- package/lib/browser/handleRequest-Cz4_wmQ9.cjs +0 -189
- package/lib/browser/handleRequest-Cz4_wmQ9.cjs.map +0 -1
- package/lib/browser/hasConfigurableGlobal-C8zq1MCg.mjs +0 -109
- package/lib/browser/hasConfigurableGlobal-C8zq1MCg.mjs.map +0 -1
- package/lib/browser/hasConfigurableGlobal-CS7adEvV.cjs +0 -126
- package/lib/browser/hasConfigurableGlobal-CS7adEvV.cjs.map +0 -1
- package/lib/browser/index.cjs +0 -70
- package/lib/browser/index.cjs.map +0 -1
- package/lib/browser/index.d.mts +0 -125
- package/lib/browser/index.mjs +0 -56
- package/lib/browser/index.mjs.map +0 -1
- package/lib/browser/interceptors/WebSocket/index.cjs +0 -618
- package/lib/browser/interceptors/WebSocket/index.cjs.map +0 -1
- package/lib/browser/interceptors/WebSocket/index.mjs.map +0 -1
- package/lib/browser/interceptors/XMLHttpRequest/index.cjs +0 -8
- package/lib/browser/interceptors/XMLHttpRequest/index.d.cts +0 -15
- package/lib/browser/interceptors/XMLHttpRequest/index.d.mts +0 -15
- package/lib/browser/interceptors/XMLHttpRequest/index.mjs +0 -8
- package/lib/browser/interceptors/fetch/index.cjs +0 -7
- package/lib/browser/interceptors/fetch/index.d.cts +0 -13
- package/lib/browser/interceptors/fetch/index.d.mts +0 -13
- package/lib/browser/interceptors/fetch/index.mjs +0 -7
- package/lib/browser/presets/browser.cjs +0 -18
- package/lib/browser/presets/browser.cjs.map +0 -1
- package/lib/browser/presets/browser.d.cts +0 -12
- package/lib/browser/presets/browser.d.mts +0 -14
- package/lib/browser/presets/browser.mjs +0 -18
- package/lib/browser/presets/browser.mjs.map +0 -1
- package/lib/browser/resolveWebSocketUrl-6K6EgqsA.cjs +0 -31
- package/lib/browser/resolveWebSocketUrl-6K6EgqsA.cjs.map +0 -1
- package/lib/browser/resolveWebSocketUrl-C83-x9iE.mjs.map +0 -1
- package/lib/node/BatchInterceptor-DdMNfSUY.mjs +0 -44
- package/lib/node/BatchInterceptor-DdMNfSUY.mjs.map +0 -1
- package/lib/node/BatchInterceptor-KKF8Q47I.d.cts +0 -26
- package/lib/node/BatchInterceptor-Z1lwK23r.cjs +0 -49
- package/lib/node/BatchInterceptor-Z1lwK23r.cjs.map +0 -1
- package/lib/node/BatchInterceptor-rSr-NH_H.d.mts +0 -26
- package/lib/node/ClientRequest-DFs7FPNi.cjs +0 -1058
- package/lib/node/ClientRequest-DFs7FPNi.cjs.map +0 -1
- package/lib/node/ClientRequest-dRpI9v1o.mjs +0 -1049
- package/lib/node/ClientRequest-dRpI9v1o.mjs.map +0 -1
- package/lib/node/Interceptor-BsZ21ue0.d.cts +0 -132
- package/lib/node/Interceptor-soD-WpQO.d.mts +0 -132
- package/lib/node/RemoteHttpInterceptor.cjs +0 -155
- package/lib/node/RemoteHttpInterceptor.cjs.map +0 -1
- package/lib/node/RemoteHttpInterceptor.d.mts +0 -39
- package/lib/node/RemoteHttpInterceptor.mjs.map +0 -1
- package/lib/node/XMLHttpRequest-DhupxLHX.mjs.map +0 -1
- package/lib/node/XMLHttpRequest-Dyi6ahGz.cjs +0 -752
- package/lib/node/XMLHttpRequest-Dyi6ahGz.cjs.map +0 -1
- package/lib/node/bufferUtils-DxPxwff_.mjs +0 -20
- package/lib/node/bufferUtils-DxPxwff_.mjs.map +0 -1
- package/lib/node/bufferUtils-S5_-2eN4.cjs +0 -38
- package/lib/node/bufferUtils-S5_-2eN4.cjs.map +0 -1
- package/lib/node/chunk-CbDLau6x.cjs +0 -34
- package/lib/node/fetch-BqMcbuYR.mjs +0 -252
- package/lib/node/fetch-BqMcbuYR.mjs.map +0 -1
- package/lib/node/fetch-aQJu1Gf_.cjs +0 -259
- package/lib/node/fetch-aQJu1Gf_.cjs.map +0 -1
- package/lib/node/fetchUtils-BKJ1XmiO.mjs +0 -480
- package/lib/node/fetchUtils-BKJ1XmiO.mjs.map +0 -1
- package/lib/node/fetchUtils-umV5xXBy.cjs +0 -546
- package/lib/node/fetchUtils-umV5xXBy.cjs.map +0 -1
- package/lib/node/getRawRequest-B6znU6il.cjs +0 -36
- package/lib/node/getRawRequest-B6znU6il.cjs.map +0 -1
- package/lib/node/getRawRequest-C2-1urzA.mjs +0 -24
- package/lib/node/getRawRequest-C2-1urzA.mjs.map +0 -1
- package/lib/node/handleRequest-DCLzePtS.mjs +0 -190
- package/lib/node/handleRequest-DCLzePtS.mjs.map +0 -1
- package/lib/node/handleRequest-DVOthWJo.cjs +0 -220
- package/lib/node/handleRequest-DVOthWJo.cjs.map +0 -1
- package/lib/node/hasConfigurableGlobal-BiTmog1u.mjs.map +0 -1
- package/lib/node/hasConfigurableGlobal-MjY06_Ok.cjs +0 -108
- package/lib/node/hasConfigurableGlobal-MjY06_Ok.cjs.map +0 -1
- package/lib/node/index-BJ5E5aW-.d.cts +0 -113
- package/lib/node/index-DfoF45ih.d.mts +0 -113
- package/lib/node/index.cjs +0 -53
- package/lib/node/index.cjs.map +0 -1
- package/lib/node/index.d.cts +0 -104
- package/lib/node/index.d.mts +0 -104
- package/lib/node/index.mjs.map +0 -1
- package/lib/node/interceptors/ClientRequest/index.cjs +0 -6
- package/lib/node/interceptors/ClientRequest/index.d.cts +0 -2
- package/lib/node/interceptors/ClientRequest/index.d.mts +0 -3
- package/lib/node/interceptors/ClientRequest/index.mjs +0 -6
- package/lib/node/interceptors/XMLHttpRequest/index.cjs +0 -7
- package/lib/node/interceptors/XMLHttpRequest/index.d.cts +0 -14
- package/lib/node/interceptors/XMLHttpRequest/index.d.mts +0 -14
- package/lib/node/interceptors/XMLHttpRequest/index.mjs +0 -7
- package/lib/node/interceptors/fetch/index.cjs +0 -6
- package/lib/node/interceptors/fetch/index.d.cts +0 -12
- package/lib/node/interceptors/fetch/index.d.mts +0 -12
- package/lib/node/interceptors/fetch/index.mjs +0 -6
- package/lib/node/node-DIKcnzhK.cjs +0 -39
- package/lib/node/node-DIKcnzhK.cjs.map +0 -1
- package/lib/node/node-lsdNwZEW.mjs +0 -27
- package/lib/node/node-lsdNwZEW.mjs.map +0 -1
- package/lib/node/presets/node.cjs +0 -23
- package/lib/node/presets/node.cjs.map +0 -1
- package/lib/node/presets/node.d.cts +0 -13
- package/lib/node/presets/node.d.mts +0 -15
- package/lib/node/presets/node.mjs +0 -23
- package/lib/node/presets/node.mjs.map +0 -1
- package/lib/node/utils/node/index.cjs +0 -4
- package/lib/node/utils/node/index.d.cts +0 -16
- package/lib/node/utils/node/index.d.mts +0 -16
- package/lib/node/utils/node/index.mjs +0 -3
- package/presets/browser/package.json +0 -5
- package/presets/node/package.json +0 -11
- package/src/BatchInterceptor.test.ts +0 -255
- package/src/BatchInterceptor.ts +0 -95
- package/src/Interceptor.test.ts +0 -205
- package/src/Interceptor.ts +0 -249
- package/src/getRawRequest.ts +0 -21
- package/src/interceptors/ClientRequest/MockHttpSocket.ts +0 -724
- package/src/interceptors/ClientRequest/agents.ts +0 -110
- package/src/interceptors/ClientRequest/utils/getIncomingMessageBody.test.ts +0 -54
- package/src/interceptors/ClientRequest/utils/getIncomingMessageBody.ts +0 -45
- package/src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.test.ts +0 -427
- package/src/interceptors/ClientRequest/utils/normalizeClientRequestArgs.ts +0 -268
- package/src/interceptors/ClientRequest/utils/parserUtils.ts +0 -48
- package/src/interceptors/Socket/MockSocket.test.ts +0 -264
- package/src/interceptors/Socket/MockSocket.ts +0 -58
- package/src/interceptors/Socket/utils/baseUrlFromConnectionOptions.ts +0 -26
- package/src/interceptors/Socket/utils/normalizeSocketWriteArgs.test.ts +0 -52
- package/src/interceptors/Socket/utils/normalizeSocketWriteArgs.ts +0 -33
- package/src/interceptors/XMLHttpRequest/index.ts +0 -40
- package/src/interceptors/fetch/index.ts +0 -203
- package/src/utils/bufferUtils.ts +0 -22
- package/src/utils/canParseUrl.ts +0 -13
- package/src/utils/emitAsync.ts +0 -25
- package/src/utils/nextTick.ts +0 -11
- package/src/utils/node/index.ts +0 -39
- /package/src/{createRequestId.ts → create-request-id.ts} +0 -0
- /package/src/{InterceptorError.ts → interceptor-error.ts} +0 -0
- /package/src/interceptors/WebSocket/utils/{bindEvent.ts → bind-event.ts} +0 -0
- /package/src/interceptors/XMLHttpRequest/polyfills/{EventPolyfill.ts → event-polyfill.ts} +0 -0
- /package/src/interceptors/XMLHttpRequest/utils/{getBodyByteLength.ts → get-body-byte-length.ts} +0 -0
- /package/src/interceptors/XMLHttpRequest/utils/{isDomParserSupportedType.ts → is-dom-parser-supported-type.ts} +0 -0
- /package/src/interceptors/fetch/utils/{createNetworkError.ts → create-network-error.ts} +0 -0
- /package/src/utils/{findPropertySource.ts → find-property-source.ts} +0 -0
- /package/src/utils/{getCleanUrl.ts → get-clean-url.ts} +0 -0
- /package/src/utils/{getValueBySymbol.ts → get-value-by-symbol.ts} +0 -0
- /package/src/utils/{isNodeLikeError.ts → is-node-like-error.ts} +0 -0
- /package/src/utils/{isObject.ts → is-object.ts} +0 -0
- /package/src/utils/{isPropertyAccessible.ts → is-property-accessible.ts} +0 -0
- /package/src/utils/{parseJson.ts → parse-json.ts} +0 -0
- /package/src/utils/{resolveWebSocketUrl.ts → resolve-web-socket-url.ts} +0 -0
|
@@ -0,0 +1,957 @@
|
|
|
1
|
+
export type IntDict = Readonly<Record<string, number>>;
|
|
2
|
+
type Simplify<T> = T extends any[] | Date ? T : {
|
|
3
|
+
[K in keyof T]: T[K];
|
|
4
|
+
} & {};
|
|
5
|
+
export declare const ERROR: {
|
|
6
|
+
readonly OK: 0;
|
|
7
|
+
readonly INTERNAL: 1;
|
|
8
|
+
readonly STRICT: 2;
|
|
9
|
+
readonly CR_EXPECTED: 25;
|
|
10
|
+
readonly LF_EXPECTED: 3;
|
|
11
|
+
readonly UNEXPECTED_CONTENT_LENGTH: 4;
|
|
12
|
+
readonly UNEXPECTED_SPACE: 30;
|
|
13
|
+
readonly CLOSED_CONNECTION: 5;
|
|
14
|
+
readonly INVALID_METHOD: 6;
|
|
15
|
+
readonly INVALID_URL: 7;
|
|
16
|
+
readonly INVALID_CONSTANT: 8;
|
|
17
|
+
readonly INVALID_VERSION: 9;
|
|
18
|
+
readonly INVALID_HEADER_TOKEN: 10;
|
|
19
|
+
readonly INVALID_CONTENT_LENGTH: 11;
|
|
20
|
+
readonly INVALID_CHUNK_SIZE: 12;
|
|
21
|
+
readonly INVALID_STATUS: 13;
|
|
22
|
+
readonly INVALID_EOF_STATE: 14;
|
|
23
|
+
readonly INVALID_TRANSFER_ENCODING: 15;
|
|
24
|
+
readonly CB_MESSAGE_BEGIN: 16;
|
|
25
|
+
readonly CB_HEADERS_COMPLETE: 17;
|
|
26
|
+
readonly CB_MESSAGE_COMPLETE: 18;
|
|
27
|
+
readonly CB_CHUNK_HEADER: 19;
|
|
28
|
+
readonly CB_CHUNK_COMPLETE: 20;
|
|
29
|
+
readonly PAUSED: 21;
|
|
30
|
+
readonly PAUSED_UPGRADE: 22;
|
|
31
|
+
readonly PAUSED_H2_UPGRADE: 23;
|
|
32
|
+
readonly USER: 24;
|
|
33
|
+
readonly CB_URL_COMPLETE: 26;
|
|
34
|
+
readonly CB_STATUS_COMPLETE: 27;
|
|
35
|
+
readonly CB_METHOD_COMPLETE: 32;
|
|
36
|
+
readonly CB_VERSION_COMPLETE: 33;
|
|
37
|
+
readonly CB_HEADER_FIELD_COMPLETE: 28;
|
|
38
|
+
readonly CB_HEADER_VALUE_COMPLETE: 29;
|
|
39
|
+
readonly CB_CHUNK_EXTENSION_NAME_COMPLETE: 34;
|
|
40
|
+
readonly CB_CHUNK_EXTENSION_VALUE_COMPLETE: 35;
|
|
41
|
+
readonly CB_RESET: 31;
|
|
42
|
+
readonly CB_PROTOCOL_COMPLETE: 38;
|
|
43
|
+
};
|
|
44
|
+
export declare const TYPE: {
|
|
45
|
+
readonly BOTH: 0;
|
|
46
|
+
readonly REQUEST: 1;
|
|
47
|
+
readonly RESPONSE: 2;
|
|
48
|
+
};
|
|
49
|
+
export declare const FLAGS: {
|
|
50
|
+
readonly CONNECTION_KEEP_ALIVE: number;
|
|
51
|
+
readonly CONNECTION_CLOSE: number;
|
|
52
|
+
readonly CONNECTION_UPGRADE: number;
|
|
53
|
+
readonly CHUNKED: number;
|
|
54
|
+
readonly UPGRADE: number;
|
|
55
|
+
readonly CONTENT_LENGTH: number;
|
|
56
|
+
readonly SKIPBODY: number;
|
|
57
|
+
readonly TRAILING: number;
|
|
58
|
+
readonly TRANSFER_ENCODING: number;
|
|
59
|
+
};
|
|
60
|
+
export declare const LENIENT_FLAGS: {
|
|
61
|
+
readonly HEADERS: number;
|
|
62
|
+
readonly CHUNKED_LENGTH: number;
|
|
63
|
+
readonly KEEP_ALIVE: number;
|
|
64
|
+
readonly TRANSFER_ENCODING: number;
|
|
65
|
+
readonly VERSION: number;
|
|
66
|
+
readonly DATA_AFTER_CLOSE: number;
|
|
67
|
+
readonly OPTIONAL_LF_AFTER_CR: number;
|
|
68
|
+
readonly OPTIONAL_CRLF_AFTER_CHUNK: number;
|
|
69
|
+
readonly OPTIONAL_CR_BEFORE_LF: number;
|
|
70
|
+
readonly SPACES_AFTER_CHUNK_SIZE: number;
|
|
71
|
+
readonly HEADER_VALUE_RELAXED: number;
|
|
72
|
+
};
|
|
73
|
+
export declare const STATUSES: {
|
|
74
|
+
readonly CONTINUE: 100;
|
|
75
|
+
readonly SWITCHING_PROTOCOLS: 101;
|
|
76
|
+
readonly PROCESSING: 102;
|
|
77
|
+
readonly EARLY_HINTS: 103;
|
|
78
|
+
readonly RESPONSE_IS_STALE: 110;
|
|
79
|
+
readonly REVALIDATION_FAILED: 111;
|
|
80
|
+
readonly DISCONNECTED_OPERATION: 112;
|
|
81
|
+
readonly HEURISTIC_EXPIRATION: 113;
|
|
82
|
+
readonly MISCELLANEOUS_WARNING: 199;
|
|
83
|
+
readonly OK: 200;
|
|
84
|
+
readonly CREATED: 201;
|
|
85
|
+
readonly ACCEPTED: 202;
|
|
86
|
+
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
87
|
+
readonly NO_CONTENT: 204;
|
|
88
|
+
readonly RESET_CONTENT: 205;
|
|
89
|
+
readonly PARTIAL_CONTENT: 206;
|
|
90
|
+
readonly MULTI_STATUS: 207;
|
|
91
|
+
readonly ALREADY_REPORTED: 208;
|
|
92
|
+
readonly TRANSFORMATION_APPLIED: 214;
|
|
93
|
+
readonly IM_USED: 226;
|
|
94
|
+
readonly MISCELLANEOUS_PERSISTENT_WARNING: 299;
|
|
95
|
+
readonly MULTIPLE_CHOICES: 300;
|
|
96
|
+
readonly MOVED_PERMANENTLY: 301;
|
|
97
|
+
readonly FOUND: 302;
|
|
98
|
+
readonly SEE_OTHER: 303;
|
|
99
|
+
readonly NOT_MODIFIED: 304;
|
|
100
|
+
readonly USE_PROXY: 305;
|
|
101
|
+
readonly SWITCH_PROXY: 306;
|
|
102
|
+
readonly TEMPORARY_REDIRECT: 307;
|
|
103
|
+
readonly PERMANENT_REDIRECT: 308;
|
|
104
|
+
readonly BAD_REQUEST: 400;
|
|
105
|
+
readonly UNAUTHORIZED: 401;
|
|
106
|
+
readonly PAYMENT_REQUIRED: 402;
|
|
107
|
+
readonly FORBIDDEN: 403;
|
|
108
|
+
readonly NOT_FOUND: 404;
|
|
109
|
+
readonly METHOD_NOT_ALLOWED: 405;
|
|
110
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
111
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
112
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
113
|
+
readonly CONFLICT: 409;
|
|
114
|
+
readonly GONE: 410;
|
|
115
|
+
readonly LENGTH_REQUIRED: 411;
|
|
116
|
+
readonly PRECONDITION_FAILED: 412;
|
|
117
|
+
readonly PAYLOAD_TOO_LARGE: 413;
|
|
118
|
+
readonly URI_TOO_LONG: 414;
|
|
119
|
+
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
120
|
+
readonly RANGE_NOT_SATISFIABLE: 416;
|
|
121
|
+
readonly EXPECTATION_FAILED: 417;
|
|
122
|
+
readonly IM_A_TEAPOT: 418;
|
|
123
|
+
readonly PAGE_EXPIRED: 419;
|
|
124
|
+
readonly ENHANCE_YOUR_CALM: 420;
|
|
125
|
+
readonly MISDIRECTED_REQUEST: 421;
|
|
126
|
+
readonly UNPROCESSABLE_ENTITY: 422;
|
|
127
|
+
readonly LOCKED: 423;
|
|
128
|
+
readonly FAILED_DEPENDENCY: 424;
|
|
129
|
+
readonly TOO_EARLY: 425;
|
|
130
|
+
readonly UPGRADE_REQUIRED: 426;
|
|
131
|
+
readonly PRECONDITION_REQUIRED: 428;
|
|
132
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
133
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL: 430;
|
|
134
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
|
|
135
|
+
readonly LOGIN_TIMEOUT: 440;
|
|
136
|
+
readonly NO_RESPONSE: 444;
|
|
137
|
+
readonly RETRY_WITH: 449;
|
|
138
|
+
readonly BLOCKED_BY_PARENTAL_CONTROL: 450;
|
|
139
|
+
readonly UNAVAILABLE_FOR_LEGAL_REASONS: 451;
|
|
140
|
+
readonly CLIENT_CLOSED_LOAD_BALANCED_REQUEST: 460;
|
|
141
|
+
readonly INVALID_X_FORWARDED_FOR: 463;
|
|
142
|
+
readonly REQUEST_HEADER_TOO_LARGE: 494;
|
|
143
|
+
readonly SSL_CERTIFICATE_ERROR: 495;
|
|
144
|
+
readonly SSL_CERTIFICATE_REQUIRED: 496;
|
|
145
|
+
readonly HTTP_REQUEST_SENT_TO_HTTPS_PORT: 497;
|
|
146
|
+
readonly INVALID_TOKEN: 498;
|
|
147
|
+
readonly CLIENT_CLOSED_REQUEST: 499;
|
|
148
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
149
|
+
readonly NOT_IMPLEMENTED: 501;
|
|
150
|
+
readonly BAD_GATEWAY: 502;
|
|
151
|
+
readonly SERVICE_UNAVAILABLE: 503;
|
|
152
|
+
readonly GATEWAY_TIMEOUT: 504;
|
|
153
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
154
|
+
readonly VARIANT_ALSO_NEGOTIATES: 506;
|
|
155
|
+
readonly INSUFFICIENT_STORAGE: 507;
|
|
156
|
+
readonly LOOP_DETECTED: 508;
|
|
157
|
+
readonly BANDWIDTH_LIMIT_EXCEEDED: 509;
|
|
158
|
+
readonly NOT_EXTENDED: 510;
|
|
159
|
+
readonly NETWORK_AUTHENTICATION_REQUIRED: 511;
|
|
160
|
+
readonly WEB_SERVER_UNKNOWN_ERROR: 520;
|
|
161
|
+
readonly WEB_SERVER_IS_DOWN: 521;
|
|
162
|
+
readonly CONNECTION_TIMEOUT: 522;
|
|
163
|
+
readonly ORIGIN_IS_UNREACHABLE: 523;
|
|
164
|
+
readonly TIMEOUT_OCCURED: 524;
|
|
165
|
+
readonly SSL_HANDSHAKE_FAILED: 525;
|
|
166
|
+
readonly INVALID_SSL_CERTIFICATE: 526;
|
|
167
|
+
readonly RAILGUN_ERROR: 527;
|
|
168
|
+
readonly SITE_IS_OVERLOADED: 529;
|
|
169
|
+
readonly SITE_IS_FROZEN: 530;
|
|
170
|
+
readonly IDENTITY_PROVIDER_AUTHENTICATION_ERROR: 561;
|
|
171
|
+
readonly NETWORK_READ_TIMEOUT: 598;
|
|
172
|
+
readonly NETWORK_CONNECT_TIMEOUT: 599;
|
|
173
|
+
};
|
|
174
|
+
export declare const FINISH: {
|
|
175
|
+
readonly SAFE: 0;
|
|
176
|
+
readonly SAFE_WITH_CB: 1;
|
|
177
|
+
readonly UNSAFE: 2;
|
|
178
|
+
};
|
|
179
|
+
export declare const HEADER_STATE: {
|
|
180
|
+
readonly GENERAL: 0;
|
|
181
|
+
readonly CONNECTION: 1;
|
|
182
|
+
readonly CONTENT_LENGTH: 2;
|
|
183
|
+
readonly TRANSFER_ENCODING: 3;
|
|
184
|
+
readonly UPGRADE: 4;
|
|
185
|
+
readonly CONNECTION_KEEP_ALIVE: 5;
|
|
186
|
+
readonly CONNECTION_CLOSE: 6;
|
|
187
|
+
readonly CONNECTION_UPGRADE: 7;
|
|
188
|
+
readonly TRANSFER_ENCODING_CHUNKED: 8;
|
|
189
|
+
};
|
|
190
|
+
export declare const METHODS_HTTP1_HEAD: {
|
|
191
|
+
readonly HEAD: 2;
|
|
192
|
+
};
|
|
193
|
+
/**
|
|
194
|
+
* HTTP methods as defined by RFC-9110 and other specifications.
|
|
195
|
+
* @see https://httpwg.org/specs/rfc9110.html#method.definitions
|
|
196
|
+
*/
|
|
197
|
+
export declare const METHODS_BASIC_HTTP: {
|
|
198
|
+
readonly POST: 3;
|
|
199
|
+
readonly PUT: 4;
|
|
200
|
+
readonly CONNECT: 5;
|
|
201
|
+
readonly OPTIONS: 6;
|
|
202
|
+
readonly TRACE: 7;
|
|
203
|
+
/**
|
|
204
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
205
|
+
*/
|
|
206
|
+
readonly PATCH: 28;
|
|
207
|
+
readonly LINK: 31;
|
|
208
|
+
readonly UNLINK: 32;
|
|
209
|
+
readonly HEAD: 2;
|
|
210
|
+
readonly DELETE: 0;
|
|
211
|
+
readonly GET: 1;
|
|
212
|
+
};
|
|
213
|
+
export declare const METHODS_WEBDAV: {
|
|
214
|
+
readonly COPY: 8;
|
|
215
|
+
readonly LOCK: 9;
|
|
216
|
+
readonly MKCOL: 10;
|
|
217
|
+
readonly MOVE: 11;
|
|
218
|
+
readonly PROPFIND: 12;
|
|
219
|
+
readonly PROPPATCH: 13;
|
|
220
|
+
readonly SEARCH: 14;
|
|
221
|
+
readonly UNLOCK: 15;
|
|
222
|
+
readonly BIND: 16;
|
|
223
|
+
readonly REBIND: 17;
|
|
224
|
+
readonly UNBIND: 18;
|
|
225
|
+
readonly ACL: 19;
|
|
226
|
+
};
|
|
227
|
+
export declare const METHODS_SUBVERSION: {
|
|
228
|
+
readonly REPORT: 20;
|
|
229
|
+
readonly MKACTIVITY: 21;
|
|
230
|
+
readonly CHECKOUT: 22;
|
|
231
|
+
readonly MERGE: 23;
|
|
232
|
+
};
|
|
233
|
+
export declare const METHODS_UPNP: {
|
|
234
|
+
readonly 'M-SEARCH': 24;
|
|
235
|
+
readonly NOTIFY: 25;
|
|
236
|
+
readonly SUBSCRIBE: 26;
|
|
237
|
+
readonly UNSUBSCRIBE: 27;
|
|
238
|
+
};
|
|
239
|
+
export declare const METHODS_CALDAV: {
|
|
240
|
+
readonly MKCALENDAR: 30;
|
|
241
|
+
};
|
|
242
|
+
export declare const METHODS_NON_STANDARD: {
|
|
243
|
+
/**
|
|
244
|
+
* Not defined in any RFC but commonly used
|
|
245
|
+
*/
|
|
246
|
+
readonly PURGE: 29;
|
|
247
|
+
readonly QUERY: 46;
|
|
248
|
+
};
|
|
249
|
+
export declare const METHODS_ICECAST: {
|
|
250
|
+
readonly SOURCE: 33;
|
|
251
|
+
};
|
|
252
|
+
export declare const METHODS_AIRPLAY: Simplify<Pick<typeof METHODS_BASIC_HTTP, "GET" | "POST">>;
|
|
253
|
+
export declare const METHODS_RAOP: {
|
|
254
|
+
readonly FLUSH: 45;
|
|
255
|
+
};
|
|
256
|
+
export declare const METHODS_RTSP: {
|
|
257
|
+
readonly FLUSH: 45;
|
|
258
|
+
readonly GET: 1;
|
|
259
|
+
readonly POST: 3;
|
|
260
|
+
readonly OPTIONS: 6;
|
|
261
|
+
readonly DESCRIBE: 35;
|
|
262
|
+
readonly ANNOUNCE: 36;
|
|
263
|
+
readonly SETUP: 37;
|
|
264
|
+
readonly PLAY: 38;
|
|
265
|
+
readonly PAUSE: 39;
|
|
266
|
+
readonly TEARDOWN: 40;
|
|
267
|
+
readonly GET_PARAMETER: 41;
|
|
268
|
+
readonly SET_PARAMETER: 42;
|
|
269
|
+
readonly REDIRECT: 43;
|
|
270
|
+
readonly RECORD: 44;
|
|
271
|
+
};
|
|
272
|
+
export declare const METHODS_HTTP1: {
|
|
273
|
+
readonly SOURCE: 33;
|
|
274
|
+
/**
|
|
275
|
+
* Not defined in any RFC but commonly used
|
|
276
|
+
*/
|
|
277
|
+
readonly PURGE: 29;
|
|
278
|
+
readonly QUERY: 46;
|
|
279
|
+
readonly MKCALENDAR: 30;
|
|
280
|
+
readonly 'M-SEARCH': 24;
|
|
281
|
+
readonly NOTIFY: 25;
|
|
282
|
+
readonly SUBSCRIBE: 26;
|
|
283
|
+
readonly UNSUBSCRIBE: 27;
|
|
284
|
+
readonly REPORT: 20;
|
|
285
|
+
readonly MKACTIVITY: 21;
|
|
286
|
+
readonly CHECKOUT: 22;
|
|
287
|
+
readonly MERGE: 23;
|
|
288
|
+
readonly COPY: 8;
|
|
289
|
+
readonly LOCK: 9;
|
|
290
|
+
readonly MKCOL: 10;
|
|
291
|
+
readonly MOVE: 11;
|
|
292
|
+
readonly PROPFIND: 12;
|
|
293
|
+
readonly PROPPATCH: 13;
|
|
294
|
+
readonly SEARCH: 14;
|
|
295
|
+
readonly UNLOCK: 15;
|
|
296
|
+
readonly BIND: 16;
|
|
297
|
+
readonly REBIND: 17;
|
|
298
|
+
readonly UNBIND: 18;
|
|
299
|
+
readonly ACL: 19;
|
|
300
|
+
readonly POST: 3;
|
|
301
|
+
readonly PUT: 4;
|
|
302
|
+
readonly CONNECT: 5;
|
|
303
|
+
readonly OPTIONS: 6;
|
|
304
|
+
readonly TRACE: 7;
|
|
305
|
+
/**
|
|
306
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
307
|
+
*/
|
|
308
|
+
readonly PATCH: 28;
|
|
309
|
+
readonly LINK: 31;
|
|
310
|
+
readonly UNLINK: 32;
|
|
311
|
+
readonly HEAD: 2;
|
|
312
|
+
readonly DELETE: 0;
|
|
313
|
+
readonly GET: 1;
|
|
314
|
+
};
|
|
315
|
+
export declare const METHODS_HTTP2: {
|
|
316
|
+
/**
|
|
317
|
+
* RFC-9113, section 11.6
|
|
318
|
+
* @see https://www.rfc-editor.org/rfc/rfc9113.html#preface
|
|
319
|
+
*/
|
|
320
|
+
readonly PRI: 34;
|
|
321
|
+
};
|
|
322
|
+
export declare const METHODS_HTTP: {
|
|
323
|
+
/**
|
|
324
|
+
* RFC-9113, section 11.6
|
|
325
|
+
* @see https://www.rfc-editor.org/rfc/rfc9113.html#preface
|
|
326
|
+
*/
|
|
327
|
+
readonly PRI: 34;
|
|
328
|
+
readonly SOURCE: 33;
|
|
329
|
+
/**
|
|
330
|
+
* Not defined in any RFC but commonly used
|
|
331
|
+
*/
|
|
332
|
+
readonly PURGE: 29;
|
|
333
|
+
readonly QUERY: 46;
|
|
334
|
+
readonly MKCALENDAR: 30;
|
|
335
|
+
readonly 'M-SEARCH': 24;
|
|
336
|
+
readonly NOTIFY: 25;
|
|
337
|
+
readonly SUBSCRIBE: 26;
|
|
338
|
+
readonly UNSUBSCRIBE: 27;
|
|
339
|
+
readonly REPORT: 20;
|
|
340
|
+
readonly MKACTIVITY: 21;
|
|
341
|
+
readonly CHECKOUT: 22;
|
|
342
|
+
readonly MERGE: 23;
|
|
343
|
+
readonly COPY: 8;
|
|
344
|
+
readonly LOCK: 9;
|
|
345
|
+
readonly MKCOL: 10;
|
|
346
|
+
readonly MOVE: 11;
|
|
347
|
+
readonly PROPFIND: 12;
|
|
348
|
+
readonly PROPPATCH: 13;
|
|
349
|
+
readonly SEARCH: 14;
|
|
350
|
+
readonly UNLOCK: 15;
|
|
351
|
+
readonly BIND: 16;
|
|
352
|
+
readonly REBIND: 17;
|
|
353
|
+
readonly UNBIND: 18;
|
|
354
|
+
readonly ACL: 19;
|
|
355
|
+
readonly POST: 3;
|
|
356
|
+
readonly PUT: 4;
|
|
357
|
+
readonly CONNECT: 5;
|
|
358
|
+
readonly OPTIONS: 6;
|
|
359
|
+
readonly TRACE: 7;
|
|
360
|
+
/**
|
|
361
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
362
|
+
*/
|
|
363
|
+
readonly PATCH: 28;
|
|
364
|
+
readonly LINK: 31;
|
|
365
|
+
readonly UNLINK: 32;
|
|
366
|
+
readonly HEAD: 2;
|
|
367
|
+
readonly DELETE: 0;
|
|
368
|
+
readonly GET: 1;
|
|
369
|
+
};
|
|
370
|
+
export declare const METHODS: {
|
|
371
|
+
readonly FLUSH: 45;
|
|
372
|
+
readonly GET: 1;
|
|
373
|
+
readonly POST: 3;
|
|
374
|
+
readonly OPTIONS: 6;
|
|
375
|
+
readonly DESCRIBE: 35;
|
|
376
|
+
readonly ANNOUNCE: 36;
|
|
377
|
+
readonly SETUP: 37;
|
|
378
|
+
readonly PLAY: 38;
|
|
379
|
+
readonly PAUSE: 39;
|
|
380
|
+
readonly TEARDOWN: 40;
|
|
381
|
+
readonly GET_PARAMETER: 41;
|
|
382
|
+
readonly SET_PARAMETER: 42;
|
|
383
|
+
readonly REDIRECT: 43;
|
|
384
|
+
readonly RECORD: 44;
|
|
385
|
+
/**
|
|
386
|
+
* RFC-9113, section 11.6
|
|
387
|
+
* @see https://www.rfc-editor.org/rfc/rfc9113.html#preface
|
|
388
|
+
*/
|
|
389
|
+
readonly PRI: 34;
|
|
390
|
+
readonly SOURCE: 33;
|
|
391
|
+
/**
|
|
392
|
+
* Not defined in any RFC but commonly used
|
|
393
|
+
*/
|
|
394
|
+
readonly PURGE: 29;
|
|
395
|
+
readonly QUERY: 46;
|
|
396
|
+
readonly MKCALENDAR: 30;
|
|
397
|
+
readonly 'M-SEARCH': 24;
|
|
398
|
+
readonly NOTIFY: 25;
|
|
399
|
+
readonly SUBSCRIBE: 26;
|
|
400
|
+
readonly UNSUBSCRIBE: 27;
|
|
401
|
+
readonly REPORT: 20;
|
|
402
|
+
readonly MKACTIVITY: 21;
|
|
403
|
+
readonly CHECKOUT: 22;
|
|
404
|
+
readonly MERGE: 23;
|
|
405
|
+
readonly COPY: 8;
|
|
406
|
+
readonly LOCK: 9;
|
|
407
|
+
readonly MKCOL: 10;
|
|
408
|
+
readonly MOVE: 11;
|
|
409
|
+
readonly PROPFIND: 12;
|
|
410
|
+
readonly PROPPATCH: 13;
|
|
411
|
+
readonly SEARCH: 14;
|
|
412
|
+
readonly UNLOCK: 15;
|
|
413
|
+
readonly BIND: 16;
|
|
414
|
+
readonly REBIND: 17;
|
|
415
|
+
readonly UNBIND: 18;
|
|
416
|
+
readonly ACL: 19;
|
|
417
|
+
readonly PUT: 4;
|
|
418
|
+
readonly CONNECT: 5;
|
|
419
|
+
readonly TRACE: 7;
|
|
420
|
+
/**
|
|
421
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
422
|
+
*/
|
|
423
|
+
readonly PATCH: 28;
|
|
424
|
+
readonly LINK: 31;
|
|
425
|
+
readonly UNLINK: 32;
|
|
426
|
+
readonly HEAD: 2;
|
|
427
|
+
readonly DELETE: 0;
|
|
428
|
+
};
|
|
429
|
+
export declare const ALPHA: readonly ["A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z"];
|
|
430
|
+
export declare const NUM_MAP: {
|
|
431
|
+
readonly 0: 0;
|
|
432
|
+
readonly 1: 1;
|
|
433
|
+
readonly 2: 2;
|
|
434
|
+
readonly 3: 3;
|
|
435
|
+
readonly 4: 4;
|
|
436
|
+
readonly 5: 5;
|
|
437
|
+
readonly 6: 6;
|
|
438
|
+
readonly 7: 7;
|
|
439
|
+
readonly 8: 8;
|
|
440
|
+
readonly 9: 9;
|
|
441
|
+
};
|
|
442
|
+
export declare const HEX_MAP: {
|
|
443
|
+
readonly 0: 0;
|
|
444
|
+
readonly 1: 1;
|
|
445
|
+
readonly 2: 2;
|
|
446
|
+
readonly 3: 3;
|
|
447
|
+
readonly 4: 4;
|
|
448
|
+
readonly 5: 5;
|
|
449
|
+
readonly 6: 6;
|
|
450
|
+
readonly 7: 7;
|
|
451
|
+
readonly 8: 8;
|
|
452
|
+
readonly 9: 9;
|
|
453
|
+
readonly A: 10;
|
|
454
|
+
readonly B: 11;
|
|
455
|
+
readonly C: 12;
|
|
456
|
+
readonly D: 13;
|
|
457
|
+
readonly E: 14;
|
|
458
|
+
readonly F: 15;
|
|
459
|
+
readonly a: 10;
|
|
460
|
+
readonly b: 11;
|
|
461
|
+
readonly c: 12;
|
|
462
|
+
readonly d: 13;
|
|
463
|
+
readonly e: 14;
|
|
464
|
+
readonly f: 15;
|
|
465
|
+
};
|
|
466
|
+
export declare const DIGIT: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
467
|
+
export declare const ALPHANUM: readonly ["A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
468
|
+
export declare const MARK: readonly ["-", "_", ".", "!", "~", "*", "'", "(", ")"];
|
|
469
|
+
export declare const USERINFO_CHARS: readonly ["A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-", "_", ".", "!", "~", "*", "'", "(", ")", "%", ";", ":", "&", "=", "+", "$", ","];
|
|
470
|
+
export declare const URL_CHAR: readonly ["!", "\"", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "@", "[", "\\", "]", "^", "_", "`", "{", "|", "}", "~", "A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
471
|
+
export declare const HEX: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"];
|
|
472
|
+
export declare const TOKEN: readonly ["!", "#", "$", "%", "&", "'", "*", "+", "-", ".", "^", "_", "`", "|", "~", "A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
473
|
+
export declare const HTAB: readonly ["\t"];
|
|
474
|
+
export declare const SP: readonly [" "];
|
|
475
|
+
export declare const HTAB_SP_VCHAR_OBS_TEXT: readonly ["\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
476
|
+
export declare const HEADER_CHARS: readonly ["\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
477
|
+
export declare const RELAXED_HEADER_CHARS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 127, "\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
478
|
+
export declare const CONNECTION_TOKEN_CHARS: readonly ["\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
479
|
+
export declare const QDTEXT: readonly ["\t", " ", 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
480
|
+
export declare const MAJOR: {
|
|
481
|
+
readonly 0: 0;
|
|
482
|
+
readonly 1: 1;
|
|
483
|
+
readonly 2: 2;
|
|
484
|
+
readonly 3: 3;
|
|
485
|
+
readonly 4: 4;
|
|
486
|
+
readonly 5: 5;
|
|
487
|
+
readonly 6: 6;
|
|
488
|
+
readonly 7: 7;
|
|
489
|
+
readonly 8: 8;
|
|
490
|
+
readonly 9: 9;
|
|
491
|
+
};
|
|
492
|
+
export declare const MINOR: {
|
|
493
|
+
readonly 0: 0;
|
|
494
|
+
readonly 1: 1;
|
|
495
|
+
readonly 2: 2;
|
|
496
|
+
readonly 3: 3;
|
|
497
|
+
readonly 4: 4;
|
|
498
|
+
readonly 5: 5;
|
|
499
|
+
readonly 6: 6;
|
|
500
|
+
readonly 7: 7;
|
|
501
|
+
readonly 8: 8;
|
|
502
|
+
readonly 9: 9;
|
|
503
|
+
};
|
|
504
|
+
export declare const SPECIAL_HEADERS: {
|
|
505
|
+
readonly connection: 1;
|
|
506
|
+
readonly 'content-length': 2;
|
|
507
|
+
readonly 'proxy-connection': 1;
|
|
508
|
+
readonly 'transfer-encoding': 3;
|
|
509
|
+
readonly upgrade: 4;
|
|
510
|
+
};
|
|
511
|
+
declare const _default: {
|
|
512
|
+
ERROR: {
|
|
513
|
+
readonly OK: 0;
|
|
514
|
+
readonly INTERNAL: 1;
|
|
515
|
+
readonly STRICT: 2;
|
|
516
|
+
readonly CR_EXPECTED: 25;
|
|
517
|
+
readonly LF_EXPECTED: 3;
|
|
518
|
+
readonly UNEXPECTED_CONTENT_LENGTH: 4;
|
|
519
|
+
readonly UNEXPECTED_SPACE: 30;
|
|
520
|
+
readonly CLOSED_CONNECTION: 5;
|
|
521
|
+
readonly INVALID_METHOD: 6;
|
|
522
|
+
readonly INVALID_URL: 7;
|
|
523
|
+
readonly INVALID_CONSTANT: 8;
|
|
524
|
+
readonly INVALID_VERSION: 9;
|
|
525
|
+
readonly INVALID_HEADER_TOKEN: 10;
|
|
526
|
+
readonly INVALID_CONTENT_LENGTH: 11;
|
|
527
|
+
readonly INVALID_CHUNK_SIZE: 12;
|
|
528
|
+
readonly INVALID_STATUS: 13;
|
|
529
|
+
readonly INVALID_EOF_STATE: 14;
|
|
530
|
+
readonly INVALID_TRANSFER_ENCODING: 15;
|
|
531
|
+
readonly CB_MESSAGE_BEGIN: 16;
|
|
532
|
+
readonly CB_HEADERS_COMPLETE: 17;
|
|
533
|
+
readonly CB_MESSAGE_COMPLETE: 18;
|
|
534
|
+
readonly CB_CHUNK_HEADER: 19;
|
|
535
|
+
readonly CB_CHUNK_COMPLETE: 20;
|
|
536
|
+
readonly PAUSED: 21;
|
|
537
|
+
readonly PAUSED_UPGRADE: 22;
|
|
538
|
+
readonly PAUSED_H2_UPGRADE: 23;
|
|
539
|
+
readonly USER: 24;
|
|
540
|
+
readonly CB_URL_COMPLETE: 26;
|
|
541
|
+
readonly CB_STATUS_COMPLETE: 27;
|
|
542
|
+
readonly CB_METHOD_COMPLETE: 32;
|
|
543
|
+
readonly CB_VERSION_COMPLETE: 33;
|
|
544
|
+
readonly CB_HEADER_FIELD_COMPLETE: 28;
|
|
545
|
+
readonly CB_HEADER_VALUE_COMPLETE: 29;
|
|
546
|
+
readonly CB_CHUNK_EXTENSION_NAME_COMPLETE: 34;
|
|
547
|
+
readonly CB_CHUNK_EXTENSION_VALUE_COMPLETE: 35;
|
|
548
|
+
readonly CB_RESET: 31;
|
|
549
|
+
readonly CB_PROTOCOL_COMPLETE: 38;
|
|
550
|
+
};
|
|
551
|
+
TYPE: {
|
|
552
|
+
readonly BOTH: 0;
|
|
553
|
+
readonly REQUEST: 1;
|
|
554
|
+
readonly RESPONSE: 2;
|
|
555
|
+
};
|
|
556
|
+
FLAGS: {
|
|
557
|
+
readonly CONNECTION_KEEP_ALIVE: number;
|
|
558
|
+
readonly CONNECTION_CLOSE: number;
|
|
559
|
+
readonly CONNECTION_UPGRADE: number;
|
|
560
|
+
readonly CHUNKED: number;
|
|
561
|
+
readonly UPGRADE: number;
|
|
562
|
+
readonly CONTENT_LENGTH: number;
|
|
563
|
+
readonly SKIPBODY: number;
|
|
564
|
+
readonly TRAILING: number;
|
|
565
|
+
readonly TRANSFER_ENCODING: number;
|
|
566
|
+
};
|
|
567
|
+
LENIENT_FLAGS: {
|
|
568
|
+
readonly HEADERS: number;
|
|
569
|
+
readonly CHUNKED_LENGTH: number;
|
|
570
|
+
readonly KEEP_ALIVE: number;
|
|
571
|
+
readonly TRANSFER_ENCODING: number;
|
|
572
|
+
readonly VERSION: number;
|
|
573
|
+
readonly DATA_AFTER_CLOSE: number;
|
|
574
|
+
readonly OPTIONAL_LF_AFTER_CR: number;
|
|
575
|
+
readonly OPTIONAL_CRLF_AFTER_CHUNK: number;
|
|
576
|
+
readonly OPTIONAL_CR_BEFORE_LF: number;
|
|
577
|
+
readonly SPACES_AFTER_CHUNK_SIZE: number;
|
|
578
|
+
readonly HEADER_VALUE_RELAXED: number;
|
|
579
|
+
};
|
|
580
|
+
STATUSES: {
|
|
581
|
+
readonly CONTINUE: 100;
|
|
582
|
+
readonly SWITCHING_PROTOCOLS: 101;
|
|
583
|
+
readonly PROCESSING: 102;
|
|
584
|
+
readonly EARLY_HINTS: 103;
|
|
585
|
+
readonly RESPONSE_IS_STALE: 110;
|
|
586
|
+
readonly REVALIDATION_FAILED: 111;
|
|
587
|
+
readonly DISCONNECTED_OPERATION: 112;
|
|
588
|
+
readonly HEURISTIC_EXPIRATION: 113;
|
|
589
|
+
readonly MISCELLANEOUS_WARNING: 199;
|
|
590
|
+
readonly OK: 200;
|
|
591
|
+
readonly CREATED: 201;
|
|
592
|
+
readonly ACCEPTED: 202;
|
|
593
|
+
readonly NON_AUTHORITATIVE_INFORMATION: 203;
|
|
594
|
+
readonly NO_CONTENT: 204;
|
|
595
|
+
readonly RESET_CONTENT: 205;
|
|
596
|
+
readonly PARTIAL_CONTENT: 206;
|
|
597
|
+
readonly MULTI_STATUS: 207;
|
|
598
|
+
readonly ALREADY_REPORTED: 208;
|
|
599
|
+
readonly TRANSFORMATION_APPLIED: 214;
|
|
600
|
+
readonly IM_USED: 226;
|
|
601
|
+
readonly MISCELLANEOUS_PERSISTENT_WARNING: 299;
|
|
602
|
+
readonly MULTIPLE_CHOICES: 300;
|
|
603
|
+
readonly MOVED_PERMANENTLY: 301;
|
|
604
|
+
readonly FOUND: 302;
|
|
605
|
+
readonly SEE_OTHER: 303;
|
|
606
|
+
readonly NOT_MODIFIED: 304;
|
|
607
|
+
readonly USE_PROXY: 305;
|
|
608
|
+
readonly SWITCH_PROXY: 306;
|
|
609
|
+
readonly TEMPORARY_REDIRECT: 307;
|
|
610
|
+
readonly PERMANENT_REDIRECT: 308;
|
|
611
|
+
readonly BAD_REQUEST: 400;
|
|
612
|
+
readonly UNAUTHORIZED: 401;
|
|
613
|
+
readonly PAYMENT_REQUIRED: 402;
|
|
614
|
+
readonly FORBIDDEN: 403;
|
|
615
|
+
readonly NOT_FOUND: 404;
|
|
616
|
+
readonly METHOD_NOT_ALLOWED: 405;
|
|
617
|
+
readonly NOT_ACCEPTABLE: 406;
|
|
618
|
+
readonly PROXY_AUTHENTICATION_REQUIRED: 407;
|
|
619
|
+
readonly REQUEST_TIMEOUT: 408;
|
|
620
|
+
readonly CONFLICT: 409;
|
|
621
|
+
readonly GONE: 410;
|
|
622
|
+
readonly LENGTH_REQUIRED: 411;
|
|
623
|
+
readonly PRECONDITION_FAILED: 412;
|
|
624
|
+
readonly PAYLOAD_TOO_LARGE: 413;
|
|
625
|
+
readonly URI_TOO_LONG: 414;
|
|
626
|
+
readonly UNSUPPORTED_MEDIA_TYPE: 415;
|
|
627
|
+
readonly RANGE_NOT_SATISFIABLE: 416;
|
|
628
|
+
readonly EXPECTATION_FAILED: 417;
|
|
629
|
+
readonly IM_A_TEAPOT: 418;
|
|
630
|
+
readonly PAGE_EXPIRED: 419;
|
|
631
|
+
readonly ENHANCE_YOUR_CALM: 420;
|
|
632
|
+
readonly MISDIRECTED_REQUEST: 421;
|
|
633
|
+
readonly UNPROCESSABLE_ENTITY: 422;
|
|
634
|
+
readonly LOCKED: 423;
|
|
635
|
+
readonly FAILED_DEPENDENCY: 424;
|
|
636
|
+
readonly TOO_EARLY: 425;
|
|
637
|
+
readonly UPGRADE_REQUIRED: 426;
|
|
638
|
+
readonly PRECONDITION_REQUIRED: 428;
|
|
639
|
+
readonly TOO_MANY_REQUESTS: 429;
|
|
640
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE_UNOFFICIAL: 430;
|
|
641
|
+
readonly REQUEST_HEADER_FIELDS_TOO_LARGE: 431;
|
|
642
|
+
readonly LOGIN_TIMEOUT: 440;
|
|
643
|
+
readonly NO_RESPONSE: 444;
|
|
644
|
+
readonly RETRY_WITH: 449;
|
|
645
|
+
readonly BLOCKED_BY_PARENTAL_CONTROL: 450;
|
|
646
|
+
readonly UNAVAILABLE_FOR_LEGAL_REASONS: 451;
|
|
647
|
+
readonly CLIENT_CLOSED_LOAD_BALANCED_REQUEST: 460;
|
|
648
|
+
readonly INVALID_X_FORWARDED_FOR: 463;
|
|
649
|
+
readonly REQUEST_HEADER_TOO_LARGE: 494;
|
|
650
|
+
readonly SSL_CERTIFICATE_ERROR: 495;
|
|
651
|
+
readonly SSL_CERTIFICATE_REQUIRED: 496;
|
|
652
|
+
readonly HTTP_REQUEST_SENT_TO_HTTPS_PORT: 497;
|
|
653
|
+
readonly INVALID_TOKEN: 498;
|
|
654
|
+
readonly CLIENT_CLOSED_REQUEST: 499;
|
|
655
|
+
readonly INTERNAL_SERVER_ERROR: 500;
|
|
656
|
+
readonly NOT_IMPLEMENTED: 501;
|
|
657
|
+
readonly BAD_GATEWAY: 502;
|
|
658
|
+
readonly SERVICE_UNAVAILABLE: 503;
|
|
659
|
+
readonly GATEWAY_TIMEOUT: 504;
|
|
660
|
+
readonly HTTP_VERSION_NOT_SUPPORTED: 505;
|
|
661
|
+
readonly VARIANT_ALSO_NEGOTIATES: 506;
|
|
662
|
+
readonly INSUFFICIENT_STORAGE: 507;
|
|
663
|
+
readonly LOOP_DETECTED: 508;
|
|
664
|
+
readonly BANDWIDTH_LIMIT_EXCEEDED: 509;
|
|
665
|
+
readonly NOT_EXTENDED: 510;
|
|
666
|
+
readonly NETWORK_AUTHENTICATION_REQUIRED: 511;
|
|
667
|
+
readonly WEB_SERVER_UNKNOWN_ERROR: 520;
|
|
668
|
+
readonly WEB_SERVER_IS_DOWN: 521;
|
|
669
|
+
readonly CONNECTION_TIMEOUT: 522;
|
|
670
|
+
readonly ORIGIN_IS_UNREACHABLE: 523;
|
|
671
|
+
readonly TIMEOUT_OCCURED: 524;
|
|
672
|
+
readonly SSL_HANDSHAKE_FAILED: 525;
|
|
673
|
+
readonly INVALID_SSL_CERTIFICATE: 526;
|
|
674
|
+
readonly RAILGUN_ERROR: 527;
|
|
675
|
+
readonly SITE_IS_OVERLOADED: 529;
|
|
676
|
+
readonly SITE_IS_FROZEN: 530;
|
|
677
|
+
readonly IDENTITY_PROVIDER_AUTHENTICATION_ERROR: 561;
|
|
678
|
+
readonly NETWORK_READ_TIMEOUT: 598;
|
|
679
|
+
readonly NETWORK_CONNECT_TIMEOUT: 599;
|
|
680
|
+
};
|
|
681
|
+
FINISH: {
|
|
682
|
+
readonly SAFE: 0;
|
|
683
|
+
readonly SAFE_WITH_CB: 1;
|
|
684
|
+
readonly UNSAFE: 2;
|
|
685
|
+
};
|
|
686
|
+
HEADER_STATE: {
|
|
687
|
+
readonly GENERAL: 0;
|
|
688
|
+
readonly CONNECTION: 1;
|
|
689
|
+
readonly CONTENT_LENGTH: 2;
|
|
690
|
+
readonly TRANSFER_ENCODING: 3;
|
|
691
|
+
readonly UPGRADE: 4;
|
|
692
|
+
readonly CONNECTION_KEEP_ALIVE: 5;
|
|
693
|
+
readonly CONNECTION_CLOSE: 6;
|
|
694
|
+
readonly CONNECTION_UPGRADE: 7;
|
|
695
|
+
readonly TRANSFER_ENCODING_CHUNKED: 8;
|
|
696
|
+
};
|
|
697
|
+
ALPHA: readonly ["A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z"];
|
|
698
|
+
NUM_MAP: {
|
|
699
|
+
readonly 0: 0;
|
|
700
|
+
readonly 1: 1;
|
|
701
|
+
readonly 2: 2;
|
|
702
|
+
readonly 3: 3;
|
|
703
|
+
readonly 4: 4;
|
|
704
|
+
readonly 5: 5;
|
|
705
|
+
readonly 6: 6;
|
|
706
|
+
readonly 7: 7;
|
|
707
|
+
readonly 8: 8;
|
|
708
|
+
readonly 9: 9;
|
|
709
|
+
};
|
|
710
|
+
HEX_MAP: {
|
|
711
|
+
readonly 0: 0;
|
|
712
|
+
readonly 1: 1;
|
|
713
|
+
readonly 2: 2;
|
|
714
|
+
readonly 3: 3;
|
|
715
|
+
readonly 4: 4;
|
|
716
|
+
readonly 5: 5;
|
|
717
|
+
readonly 6: 6;
|
|
718
|
+
readonly 7: 7;
|
|
719
|
+
readonly 8: 8;
|
|
720
|
+
readonly 9: 9;
|
|
721
|
+
readonly A: 10;
|
|
722
|
+
readonly B: 11;
|
|
723
|
+
readonly C: 12;
|
|
724
|
+
readonly D: 13;
|
|
725
|
+
readonly E: 14;
|
|
726
|
+
readonly F: 15;
|
|
727
|
+
readonly a: 10;
|
|
728
|
+
readonly b: 11;
|
|
729
|
+
readonly c: 12;
|
|
730
|
+
readonly d: 13;
|
|
731
|
+
readonly e: 14;
|
|
732
|
+
readonly f: 15;
|
|
733
|
+
};
|
|
734
|
+
DIGIT: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
735
|
+
ALPHANUM: readonly ["A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
736
|
+
MARK: readonly ["-", "_", ".", "!", "~", "*", "'", "(", ")"];
|
|
737
|
+
USERINFO_CHARS: readonly ["A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "-", "_", ".", "!", "~", "*", "'", "(", ")", "%", ";", ":", "&", "=", "+", "$", ","];
|
|
738
|
+
URL_CHAR: readonly ["!", "\"", "$", "%", "&", "'", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "<", "=", ">", "@", "[", "\\", "]", "^", "_", "`", "{", "|", "}", "~", "A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
739
|
+
HEX: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "A", "B", "C", "D", "E", "F"];
|
|
740
|
+
TOKEN: readonly ["!", "#", "$", "%", "&", "'", "*", "+", "-", ".", "^", "_", "`", "|", "~", "A", "a", "B", "b", "C", "c", "D", "d", "E", "e", "F", "f", "G", "g", "H", "h", "I", "i", "J", "j", "K", "k", "L", "l", "M", "m", "N", "n", "O", "o", "P", "p", "Q", "q", "R", "r", "S", "s", "T", "t", "U", "u", "V", "v", "W", "w", "X", "x", "Y", "y", "Z", "z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
741
|
+
HEADER_CHARS: readonly ["\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
742
|
+
RELAXED_HEADER_CHARS: readonly [1, 2, 3, 4, 5, 6, 7, 8, 11, 12, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 127, "\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
743
|
+
CONNECTION_TOKEN_CHARS: readonly ["\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
744
|
+
QDTEXT: readonly ["\t", " ", 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
745
|
+
HTAB_SP_VCHAR_OBS_TEXT: readonly ["\t", " ", 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194, 195, 196, 197, 198, 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, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255];
|
|
746
|
+
MAJOR: {
|
|
747
|
+
readonly 0: 0;
|
|
748
|
+
readonly 1: 1;
|
|
749
|
+
readonly 2: 2;
|
|
750
|
+
readonly 3: 3;
|
|
751
|
+
readonly 4: 4;
|
|
752
|
+
readonly 5: 5;
|
|
753
|
+
readonly 6: 6;
|
|
754
|
+
readonly 7: 7;
|
|
755
|
+
readonly 8: 8;
|
|
756
|
+
readonly 9: 9;
|
|
757
|
+
};
|
|
758
|
+
MINOR: {
|
|
759
|
+
readonly 0: 0;
|
|
760
|
+
readonly 1: 1;
|
|
761
|
+
readonly 2: 2;
|
|
762
|
+
readonly 3: 3;
|
|
763
|
+
readonly 4: 4;
|
|
764
|
+
readonly 5: 5;
|
|
765
|
+
readonly 6: 6;
|
|
766
|
+
readonly 7: 7;
|
|
767
|
+
readonly 8: 8;
|
|
768
|
+
readonly 9: 9;
|
|
769
|
+
};
|
|
770
|
+
SPECIAL_HEADERS: {
|
|
771
|
+
readonly connection: 1;
|
|
772
|
+
readonly 'content-length': 2;
|
|
773
|
+
readonly 'proxy-connection': 1;
|
|
774
|
+
readonly 'transfer-encoding': 3;
|
|
775
|
+
readonly upgrade: 4;
|
|
776
|
+
};
|
|
777
|
+
METHODS: {
|
|
778
|
+
readonly FLUSH: 45;
|
|
779
|
+
readonly GET: 1;
|
|
780
|
+
readonly POST: 3;
|
|
781
|
+
readonly OPTIONS: 6;
|
|
782
|
+
readonly DESCRIBE: 35;
|
|
783
|
+
readonly ANNOUNCE: 36;
|
|
784
|
+
readonly SETUP: 37;
|
|
785
|
+
readonly PLAY: 38;
|
|
786
|
+
readonly PAUSE: 39;
|
|
787
|
+
readonly TEARDOWN: 40;
|
|
788
|
+
readonly GET_PARAMETER: 41;
|
|
789
|
+
readonly SET_PARAMETER: 42;
|
|
790
|
+
readonly REDIRECT: 43;
|
|
791
|
+
readonly RECORD: 44;
|
|
792
|
+
/**
|
|
793
|
+
* RFC-9113, section 11.6
|
|
794
|
+
* @see https://www.rfc-editor.org/rfc/rfc9113.html#preface
|
|
795
|
+
*/
|
|
796
|
+
readonly PRI: 34;
|
|
797
|
+
readonly SOURCE: 33;
|
|
798
|
+
/**
|
|
799
|
+
* Not defined in any RFC but commonly used
|
|
800
|
+
*/
|
|
801
|
+
readonly PURGE: 29;
|
|
802
|
+
readonly QUERY: 46;
|
|
803
|
+
readonly MKCALENDAR: 30;
|
|
804
|
+
readonly 'M-SEARCH': 24;
|
|
805
|
+
readonly NOTIFY: 25;
|
|
806
|
+
readonly SUBSCRIBE: 26;
|
|
807
|
+
readonly UNSUBSCRIBE: 27;
|
|
808
|
+
readonly REPORT: 20;
|
|
809
|
+
readonly MKACTIVITY: 21;
|
|
810
|
+
readonly CHECKOUT: 22;
|
|
811
|
+
readonly MERGE: 23;
|
|
812
|
+
readonly COPY: 8;
|
|
813
|
+
readonly LOCK: 9;
|
|
814
|
+
readonly MKCOL: 10;
|
|
815
|
+
readonly MOVE: 11;
|
|
816
|
+
readonly PROPFIND: 12;
|
|
817
|
+
readonly PROPPATCH: 13;
|
|
818
|
+
readonly SEARCH: 14;
|
|
819
|
+
readonly UNLOCK: 15;
|
|
820
|
+
readonly BIND: 16;
|
|
821
|
+
readonly REBIND: 17;
|
|
822
|
+
readonly UNBIND: 18;
|
|
823
|
+
readonly ACL: 19;
|
|
824
|
+
readonly PUT: 4;
|
|
825
|
+
readonly CONNECT: 5;
|
|
826
|
+
readonly TRACE: 7;
|
|
827
|
+
/**
|
|
828
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
829
|
+
*/
|
|
830
|
+
readonly PATCH: 28;
|
|
831
|
+
readonly LINK: 31;
|
|
832
|
+
readonly UNLINK: 32;
|
|
833
|
+
readonly HEAD: 2;
|
|
834
|
+
readonly DELETE: 0;
|
|
835
|
+
};
|
|
836
|
+
METHODS_HTTP: {
|
|
837
|
+
/**
|
|
838
|
+
* RFC-9113, section 11.6
|
|
839
|
+
* @see https://www.rfc-editor.org/rfc/rfc9113.html#preface
|
|
840
|
+
*/
|
|
841
|
+
readonly PRI: 34;
|
|
842
|
+
readonly SOURCE: 33;
|
|
843
|
+
/**
|
|
844
|
+
* Not defined in any RFC but commonly used
|
|
845
|
+
*/
|
|
846
|
+
readonly PURGE: 29;
|
|
847
|
+
readonly QUERY: 46;
|
|
848
|
+
readonly MKCALENDAR: 30;
|
|
849
|
+
readonly 'M-SEARCH': 24;
|
|
850
|
+
readonly NOTIFY: 25;
|
|
851
|
+
readonly SUBSCRIBE: 26;
|
|
852
|
+
readonly UNSUBSCRIBE: 27;
|
|
853
|
+
readonly REPORT: 20;
|
|
854
|
+
readonly MKACTIVITY: 21;
|
|
855
|
+
readonly CHECKOUT: 22;
|
|
856
|
+
readonly MERGE: 23;
|
|
857
|
+
readonly COPY: 8;
|
|
858
|
+
readonly LOCK: 9;
|
|
859
|
+
readonly MKCOL: 10;
|
|
860
|
+
readonly MOVE: 11;
|
|
861
|
+
readonly PROPFIND: 12;
|
|
862
|
+
readonly PROPPATCH: 13;
|
|
863
|
+
readonly SEARCH: 14;
|
|
864
|
+
readonly UNLOCK: 15;
|
|
865
|
+
readonly BIND: 16;
|
|
866
|
+
readonly REBIND: 17;
|
|
867
|
+
readonly UNBIND: 18;
|
|
868
|
+
readonly ACL: 19;
|
|
869
|
+
readonly POST: 3;
|
|
870
|
+
readonly PUT: 4;
|
|
871
|
+
readonly CONNECT: 5;
|
|
872
|
+
readonly OPTIONS: 6;
|
|
873
|
+
readonly TRACE: 7;
|
|
874
|
+
/**
|
|
875
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
876
|
+
*/
|
|
877
|
+
readonly PATCH: 28;
|
|
878
|
+
readonly LINK: 31;
|
|
879
|
+
readonly UNLINK: 32;
|
|
880
|
+
readonly HEAD: 2;
|
|
881
|
+
readonly DELETE: 0;
|
|
882
|
+
readonly GET: 1;
|
|
883
|
+
};
|
|
884
|
+
METHODS_HTTP1_HEAD: {
|
|
885
|
+
readonly HEAD: 2;
|
|
886
|
+
};
|
|
887
|
+
METHODS_HTTP1: {
|
|
888
|
+
readonly SOURCE: 33;
|
|
889
|
+
/**
|
|
890
|
+
* Not defined in any RFC but commonly used
|
|
891
|
+
*/
|
|
892
|
+
readonly PURGE: 29;
|
|
893
|
+
readonly QUERY: 46;
|
|
894
|
+
readonly MKCALENDAR: 30;
|
|
895
|
+
readonly 'M-SEARCH': 24;
|
|
896
|
+
readonly NOTIFY: 25;
|
|
897
|
+
readonly SUBSCRIBE: 26;
|
|
898
|
+
readonly UNSUBSCRIBE: 27;
|
|
899
|
+
readonly REPORT: 20;
|
|
900
|
+
readonly MKACTIVITY: 21;
|
|
901
|
+
readonly CHECKOUT: 22;
|
|
902
|
+
readonly MERGE: 23;
|
|
903
|
+
readonly COPY: 8;
|
|
904
|
+
readonly LOCK: 9;
|
|
905
|
+
readonly MKCOL: 10;
|
|
906
|
+
readonly MOVE: 11;
|
|
907
|
+
readonly PROPFIND: 12;
|
|
908
|
+
readonly PROPPATCH: 13;
|
|
909
|
+
readonly SEARCH: 14;
|
|
910
|
+
readonly UNLOCK: 15;
|
|
911
|
+
readonly BIND: 16;
|
|
912
|
+
readonly REBIND: 17;
|
|
913
|
+
readonly UNBIND: 18;
|
|
914
|
+
readonly ACL: 19;
|
|
915
|
+
readonly POST: 3;
|
|
916
|
+
readonly PUT: 4;
|
|
917
|
+
readonly CONNECT: 5;
|
|
918
|
+
readonly OPTIONS: 6;
|
|
919
|
+
readonly TRACE: 7;
|
|
920
|
+
/**
|
|
921
|
+
* @see https://www.rfc-editor.org/rfc/rfc5789.html
|
|
922
|
+
*/
|
|
923
|
+
readonly PATCH: 28;
|
|
924
|
+
readonly LINK: 31;
|
|
925
|
+
readonly UNLINK: 32;
|
|
926
|
+
readonly HEAD: 2;
|
|
927
|
+
readonly DELETE: 0;
|
|
928
|
+
readonly GET: 1;
|
|
929
|
+
};
|
|
930
|
+
METHODS_HTTP2: {
|
|
931
|
+
/**
|
|
932
|
+
* RFC-9113, section 11.6
|
|
933
|
+
* @see https://www.rfc-editor.org/rfc/rfc9113.html#preface
|
|
934
|
+
*/
|
|
935
|
+
readonly PRI: 34;
|
|
936
|
+
};
|
|
937
|
+
METHODS_ICECAST: {
|
|
938
|
+
readonly SOURCE: 33;
|
|
939
|
+
};
|
|
940
|
+
METHODS_RTSP: {
|
|
941
|
+
readonly FLUSH: 45;
|
|
942
|
+
readonly GET: 1;
|
|
943
|
+
readonly POST: 3;
|
|
944
|
+
readonly OPTIONS: 6;
|
|
945
|
+
readonly DESCRIBE: 35;
|
|
946
|
+
readonly ANNOUNCE: 36;
|
|
947
|
+
readonly SETUP: 37;
|
|
948
|
+
readonly PLAY: 38;
|
|
949
|
+
readonly PAUSE: 39;
|
|
950
|
+
readonly TEARDOWN: 40;
|
|
951
|
+
readonly GET_PARAMETER: 41;
|
|
952
|
+
readonly SET_PARAMETER: 42;
|
|
953
|
+
readonly REDIRECT: 43;
|
|
954
|
+
readonly RECORD: 44;
|
|
955
|
+
};
|
|
956
|
+
};
|
|
957
|
+
export default _default;
|