@nocobase/plugin-idp-oauth 2.1.0-alpha.17 → 2.1.0-alpha.18
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/build.config.ts +1 -1
- package/dist/externalVersion.js +4 -4
- package/dist/node_modules/light-my-request/package.json +1 -1
- package/dist/node_modules/undici/LICENSE +21 -0
- package/dist/node_modules/undici/README.md +741 -0
- package/dist/node_modules/undici/docs/docs/api/Agent.md +84 -0
- package/dist/node_modules/undici/docs/docs/api/BalancedPool.md +99 -0
- package/dist/node_modules/undici/docs/docs/api/CacheStorage.md +30 -0
- package/dist/node_modules/undici/docs/docs/api/CacheStore.md +164 -0
- package/dist/node_modules/undici/docs/docs/api/Client.md +285 -0
- package/dist/node_modules/undici/docs/docs/api/ClientStats.md +27 -0
- package/dist/node_modules/undici/docs/docs/api/Connector.md +115 -0
- package/dist/node_modules/undici/docs/docs/api/ContentType.md +57 -0
- package/dist/node_modules/undici/docs/docs/api/Cookies.md +101 -0
- package/dist/node_modules/undici/docs/docs/api/Debug.md +62 -0
- package/dist/node_modules/undici/docs/docs/api/DiagnosticsChannel.md +315 -0
- package/dist/node_modules/undici/docs/docs/api/Dispatcher.md +1392 -0
- package/dist/node_modules/undici/docs/docs/api/EnvHttpProxyAgent.md +159 -0
- package/dist/node_modules/undici/docs/docs/api/Errors.md +49 -0
- package/dist/node_modules/undici/docs/docs/api/EventSource.md +45 -0
- package/dist/node_modules/undici/docs/docs/api/Fetch.md +60 -0
- package/dist/node_modules/undici/docs/docs/api/GlobalInstallation.md +139 -0
- package/dist/node_modules/undici/docs/docs/api/H2CClient.md +263 -0
- package/dist/node_modules/undici/docs/docs/api/MockAgent.md +603 -0
- package/dist/node_modules/undici/docs/docs/api/MockCallHistory.md +197 -0
- package/dist/node_modules/undici/docs/docs/api/MockCallHistoryLog.md +43 -0
- package/dist/node_modules/undici/docs/docs/api/MockClient.md +81 -0
- package/dist/node_modules/undici/docs/docs/api/MockErrors.md +12 -0
- package/dist/node_modules/undici/docs/docs/api/MockPool.md +555 -0
- package/dist/node_modules/undici/docs/docs/api/Pool.md +84 -0
- package/dist/node_modules/undici/docs/docs/api/PoolStats.md +35 -0
- package/dist/node_modules/undici/docs/docs/api/ProxyAgent.md +229 -0
- package/dist/node_modules/undici/docs/docs/api/RedirectHandler.md +93 -0
- package/dist/node_modules/undici/docs/docs/api/RetryAgent.md +50 -0
- package/dist/node_modules/undici/docs/docs/api/RetryHandler.md +118 -0
- package/dist/node_modules/undici/docs/docs/api/RoundRobinPool.md +145 -0
- package/dist/node_modules/undici/docs/docs/api/SnapshotAgent.md +616 -0
- package/dist/node_modules/undici/docs/docs/api/Socks5ProxyAgent.md +274 -0
- package/dist/node_modules/undici/docs/docs/api/Util.md +25 -0
- package/dist/node_modules/undici/docs/docs/api/WebSocket.md +141 -0
- package/dist/node_modules/undici/docs/docs/api/api-lifecycle.md +91 -0
- package/dist/node_modules/undici/docs/docs/best-practices/client-certificate.md +64 -0
- package/dist/node_modules/undici/docs/docs/best-practices/crawling.md +58 -0
- package/dist/node_modules/undici/docs/docs/best-practices/mocking-request.md +190 -0
- package/dist/node_modules/undici/docs/docs/best-practices/proxy.md +127 -0
- package/dist/node_modules/undici/docs/docs/best-practices/undici-vs-builtin-fetch.md +224 -0
- package/dist/node_modules/undici/docs/docs/best-practices/writing-tests.md +63 -0
- package/dist/node_modules/undici/index-fetch.js +65 -0
- package/dist/node_modules/undici/index.d.ts +3 -0
- package/dist/node_modules/undici/index.js +234 -0
- package/dist/node_modules/undici/lib/api/abort-signal.js +59 -0
- package/dist/node_modules/undici/lib/api/api-connect.js +110 -0
- package/dist/node_modules/undici/lib/api/api-pipeline.js +252 -0
- package/dist/node_modules/undici/lib/api/api-request.js +214 -0
- package/dist/node_modules/undici/lib/api/api-stream.js +209 -0
- package/dist/node_modules/undici/lib/api/api-upgrade.js +111 -0
- package/dist/node_modules/undici/lib/api/index.js +7 -0
- package/dist/node_modules/undici/lib/api/readable.js +580 -0
- package/dist/node_modules/undici/lib/cache/memory-cache-store.js +234 -0
- package/dist/node_modules/undici/lib/cache/sqlite-cache-store.js +461 -0
- package/dist/node_modules/undici/lib/core/connect.js +137 -0
- package/dist/node_modules/undici/lib/core/constants.js +143 -0
- package/dist/node_modules/undici/lib/core/diagnostics.js +227 -0
- package/dist/node_modules/undici/lib/core/errors.js +477 -0
- package/dist/node_modules/undici/lib/core/request.js +438 -0
- package/dist/node_modules/undici/lib/core/socks5-client.js +407 -0
- package/dist/node_modules/undici/lib/core/socks5-utils.js +203 -0
- package/dist/node_modules/undici/lib/core/symbols.js +75 -0
- package/dist/node_modules/undici/lib/core/tree.js +160 -0
- package/dist/node_modules/undici/lib/core/util.js +992 -0
- package/dist/node_modules/undici/lib/dispatcher/agent.js +158 -0
- package/dist/node_modules/undici/lib/dispatcher/balanced-pool.js +219 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h1.js +1610 -0
- package/dist/node_modules/undici/lib/dispatcher/client-h2.js +995 -0
- package/dist/node_modules/undici/lib/dispatcher/client.js +659 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher-base.js +165 -0
- package/dist/node_modules/undici/lib/dispatcher/dispatcher.js +48 -0
- package/dist/node_modules/undici/lib/dispatcher/env-http-proxy-agent.js +146 -0
- package/dist/node_modules/undici/lib/dispatcher/fixed-queue.js +135 -0
- package/dist/node_modules/undici/lib/dispatcher/h2c-client.js +51 -0
- package/dist/node_modules/undici/lib/dispatcher/pool-base.js +214 -0
- package/dist/node_modules/undici/lib/dispatcher/pool.js +118 -0
- package/dist/node_modules/undici/lib/dispatcher/proxy-agent.js +318 -0
- package/dist/node_modules/undici/lib/dispatcher/retry-agent.js +35 -0
- package/dist/node_modules/undici/lib/dispatcher/round-robin-pool.js +137 -0
- package/dist/node_modules/undici/lib/dispatcher/socks5-proxy-agent.js +249 -0
- package/dist/node_modules/undici/lib/encoding/index.js +33 -0
- package/dist/node_modules/undici/lib/global.js +50 -0
- package/dist/node_modules/undici/lib/handler/cache-handler.js +578 -0
- package/dist/node_modules/undici/lib/handler/cache-revalidation-handler.js +124 -0
- package/dist/node_modules/undici/lib/handler/decorator-handler.js +67 -0
- package/dist/node_modules/undici/lib/handler/deduplication-handler.js +460 -0
- package/dist/node_modules/undici/lib/handler/redirect-handler.js +238 -0
- package/dist/node_modules/undici/lib/handler/retry-handler.js +394 -0
- package/dist/node_modules/undici/lib/handler/unwrap-handler.js +100 -0
- package/dist/node_modules/undici/lib/handler/wrap-handler.js +105 -0
- package/dist/node_modules/undici/lib/interceptor/cache.js +495 -0
- package/dist/node_modules/undici/lib/interceptor/decompress.js +259 -0
- package/dist/node_modules/undici/lib/interceptor/deduplicate.js +117 -0
- package/dist/node_modules/undici/lib/interceptor/dns.js +571 -0
- package/dist/node_modules/undici/lib/interceptor/dump.js +112 -0
- package/dist/node_modules/undici/lib/interceptor/redirect.js +21 -0
- package/dist/node_modules/undici/lib/interceptor/response-error.js +95 -0
- package/dist/node_modules/undici/lib/interceptor/retry.js +19 -0
- package/dist/node_modules/undici/lib/llhttp/.gitkeep +0 -0
- package/dist/node_modules/undici/lib/llhttp/constants.d.ts +195 -0
- package/dist/node_modules/undici/lib/llhttp/constants.js +531 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp-wasm.js +15 -0
- package/dist/node_modules/undici/lib/llhttp/llhttp_simd-wasm.js +15 -0
- package/dist/node_modules/undici/lib/llhttp/utils.d.ts +2 -0
- package/dist/node_modules/undici/lib/llhttp/utils.js +12 -0
- package/dist/node_modules/undici/lib/mock/mock-agent.js +232 -0
- package/dist/node_modules/undici/lib/mock/mock-call-history.js +248 -0
- package/dist/node_modules/undici/lib/mock/mock-client.js +68 -0
- package/dist/node_modules/undici/lib/mock/mock-errors.js +29 -0
- package/dist/node_modules/undici/lib/mock/mock-interceptor.js +209 -0
- package/dist/node_modules/undici/lib/mock/mock-pool.js +68 -0
- package/dist/node_modules/undici/lib/mock/mock-symbols.js +32 -0
- package/dist/node_modules/undici/lib/mock/mock-utils.js +486 -0
- package/dist/node_modules/undici/lib/mock/pending-interceptors-formatter.js +43 -0
- package/dist/node_modules/undici/lib/mock/snapshot-agent.js +353 -0
- package/dist/node_modules/undici/lib/mock/snapshot-recorder.js +588 -0
- package/dist/node_modules/undici/lib/mock/snapshot-utils.js +158 -0
- package/dist/node_modules/undici/lib/util/cache.js +407 -0
- package/dist/node_modules/undici/lib/util/date.js +653 -0
- package/dist/node_modules/undici/lib/util/promise.js +28 -0
- package/dist/node_modules/undici/lib/util/runtime-features.js +124 -0
- package/dist/node_modules/undici/lib/util/stats.js +32 -0
- package/dist/node_modules/undici/lib/util/timers.js +425 -0
- package/dist/node_modules/undici/lib/web/cache/cache.js +864 -0
- package/dist/node_modules/undici/lib/web/cache/cachestorage.js +152 -0
- package/dist/node_modules/undici/lib/web/cache/util.js +45 -0
- package/dist/node_modules/undici/lib/web/cookies/constants.js +12 -0
- package/dist/node_modules/undici/lib/web/cookies/index.js +199 -0
- package/dist/node_modules/undici/lib/web/cookies/parse.js +322 -0
- package/dist/node_modules/undici/lib/web/cookies/util.js +282 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource-stream.js +399 -0
- package/dist/node_modules/undici/lib/web/eventsource/eventsource.js +501 -0
- package/dist/node_modules/undici/lib/web/eventsource/util.js +29 -0
- package/dist/node_modules/undici/lib/web/fetch/LICENSE +21 -0
- package/dist/node_modules/undici/lib/web/fetch/body.js +509 -0
- package/dist/node_modules/undici/lib/web/fetch/constants.js +131 -0
- package/dist/node_modules/undici/lib/web/fetch/data-url.js +596 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata-parser.js +575 -0
- package/dist/node_modules/undici/lib/web/fetch/formdata.js +259 -0
- package/dist/node_modules/undici/lib/web/fetch/global.js +40 -0
- package/dist/node_modules/undici/lib/web/fetch/headers.js +719 -0
- package/dist/node_modules/undici/lib/web/fetch/index.js +2397 -0
- package/dist/node_modules/undici/lib/web/fetch/request.js +1115 -0
- package/dist/node_modules/undici/lib/web/fetch/response.js +641 -0
- package/dist/node_modules/undici/lib/web/fetch/util.js +1520 -0
- package/dist/node_modules/undici/lib/web/infra/index.js +229 -0
- package/dist/node_modules/undici/lib/web/subresource-integrity/Readme.md +9 -0
- package/dist/node_modules/undici/lib/web/subresource-integrity/subresource-integrity.js +307 -0
- package/dist/node_modules/undici/lib/web/webidl/index.js +1006 -0
- package/dist/node_modules/undici/lib/web/websocket/connection.js +329 -0
- package/dist/node_modules/undici/lib/web/websocket/constants.js +126 -0
- package/dist/node_modules/undici/lib/web/websocket/events.js +331 -0
- package/dist/node_modules/undici/lib/web/websocket/frame.js +133 -0
- package/dist/node_modules/undici/lib/web/websocket/permessage-deflate.js +118 -0
- package/dist/node_modules/undici/lib/web/websocket/receiver.js +450 -0
- package/dist/node_modules/undici/lib/web/websocket/sender.js +109 -0
- package/dist/node_modules/undici/lib/web/websocket/stream/websocketerror.js +104 -0
- package/dist/node_modules/undici/lib/web/websocket/stream/websocketstream.js +497 -0
- package/dist/node_modules/undici/lib/web/websocket/util.js +347 -0
- package/dist/node_modules/undici/lib/web/websocket/websocket.js +751 -0
- package/dist/node_modules/undici/package.json +152 -0
- package/dist/node_modules/undici/scripts/strip-comments.js +10 -0
- package/dist/node_modules/undici/types/README.md +6 -0
- package/dist/node_modules/undici/types/agent.d.ts +32 -0
- package/dist/node_modules/undici/types/api.d.ts +43 -0
- package/dist/node_modules/undici/types/balanced-pool.d.ts +30 -0
- package/dist/node_modules/undici/types/cache-interceptor.d.ts +179 -0
- package/dist/node_modules/undici/types/cache.d.ts +36 -0
- package/dist/node_modules/undici/types/client-stats.d.ts +15 -0
- package/dist/node_modules/undici/types/client.d.ts +123 -0
- package/dist/node_modules/undici/types/connector.d.ts +36 -0
- package/dist/node_modules/undici/types/content-type.d.ts +21 -0
- package/dist/node_modules/undici/types/cookies.d.ts +30 -0
- package/dist/node_modules/undici/types/diagnostics-channel.d.ts +74 -0
- package/dist/node_modules/undici/types/dispatcher.d.ts +273 -0
- package/dist/node_modules/undici/types/env-http-proxy-agent.d.ts +22 -0
- package/dist/node_modules/undici/types/errors.d.ts +177 -0
- package/dist/node_modules/undici/types/eventsource.d.ts +66 -0
- package/dist/node_modules/undici/types/fetch.d.ts +231 -0
- package/dist/node_modules/undici/types/formdata.d.ts +114 -0
- package/dist/node_modules/undici/types/global-dispatcher.d.ts +9 -0
- package/dist/node_modules/undici/types/global-origin.d.ts +7 -0
- package/dist/node_modules/undici/types/h2c-client.d.ts +73 -0
- package/dist/node_modules/undici/types/handlers.d.ts +14 -0
- package/dist/node_modules/undici/types/header.d.ts +160 -0
- package/dist/node_modules/undici/types/index.d.ts +91 -0
- package/dist/node_modules/undici/types/interceptors.d.ts +80 -0
- package/dist/node_modules/undici/types/mock-agent.d.ts +68 -0
- package/dist/node_modules/undici/types/mock-call-history.d.ts +111 -0
- package/dist/node_modules/undici/types/mock-client.d.ts +27 -0
- package/dist/node_modules/undici/types/mock-errors.d.ts +12 -0
- package/dist/node_modules/undici/types/mock-interceptor.d.ts +94 -0
- package/dist/node_modules/undici/types/mock-pool.d.ts +27 -0
- package/dist/node_modules/undici/types/patch.d.ts +29 -0
- package/dist/node_modules/undici/types/pool-stats.d.ts +19 -0
- package/dist/node_modules/undici/types/pool.d.ts +41 -0
- package/dist/node_modules/undici/types/proxy-agent.d.ts +29 -0
- package/dist/node_modules/undici/types/readable.d.ts +68 -0
- package/dist/node_modules/undici/types/retry-agent.d.ts +8 -0
- package/dist/node_modules/undici/types/retry-handler.d.ts +125 -0
- package/dist/node_modules/undici/types/round-robin-pool.d.ts +41 -0
- package/dist/node_modules/undici/types/snapshot-agent.d.ts +109 -0
- package/dist/node_modules/undici/types/socks5-proxy-agent.d.ts +25 -0
- package/dist/node_modules/undici/types/util.d.ts +18 -0
- package/dist/node_modules/undici/types/utility.d.ts +7 -0
- package/dist/node_modules/undici/types/webidl.d.ts +347 -0
- package/dist/node_modules/undici/types/websocket.d.ts +188 -0
- package/package.json +2 -2
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
|
|
3
|
+
// const { parseHeaders } = require('../core/util')
|
|
4
|
+
const DecoratorHandler = require('../handler/decorator-handler')
|
|
5
|
+
const { ResponseError } = require('../core/errors')
|
|
6
|
+
|
|
7
|
+
class ResponseErrorHandler extends DecoratorHandler {
|
|
8
|
+
#statusCode
|
|
9
|
+
#contentType
|
|
10
|
+
#decoder
|
|
11
|
+
#headers
|
|
12
|
+
#body
|
|
13
|
+
|
|
14
|
+
constructor (_opts, { handler }) {
|
|
15
|
+
super(handler)
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
#checkContentType (contentType) {
|
|
19
|
+
return (this.#contentType ?? '').indexOf(contentType) === 0
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
onRequestStart (controller, context) {
|
|
23
|
+
this.#statusCode = 0
|
|
24
|
+
this.#contentType = null
|
|
25
|
+
this.#decoder = null
|
|
26
|
+
this.#headers = null
|
|
27
|
+
this.#body = ''
|
|
28
|
+
|
|
29
|
+
return super.onRequestStart(controller, context)
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
onResponseStart (controller, statusCode, headers, statusMessage) {
|
|
33
|
+
this.#statusCode = statusCode
|
|
34
|
+
this.#headers = headers
|
|
35
|
+
this.#contentType = headers['content-type']
|
|
36
|
+
|
|
37
|
+
if (this.#statusCode < 400) {
|
|
38
|
+
return super.onResponseStart(controller, statusCode, headers, statusMessage)
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
if (this.#checkContentType('application/json') || this.#checkContentType('text/plain')) {
|
|
42
|
+
this.#decoder = new TextDecoder('utf-8')
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
onResponseData (controller, chunk) {
|
|
47
|
+
if (this.#statusCode < 400) {
|
|
48
|
+
return super.onResponseData(controller, chunk)
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
this.#body += this.#decoder?.decode(chunk, { stream: true }) ?? ''
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
onResponseEnd (controller, trailers) {
|
|
55
|
+
if (this.#statusCode >= 400) {
|
|
56
|
+
this.#body += this.#decoder?.decode(undefined, { stream: false }) ?? ''
|
|
57
|
+
|
|
58
|
+
if (this.#checkContentType('application/json')) {
|
|
59
|
+
try {
|
|
60
|
+
this.#body = JSON.parse(this.#body)
|
|
61
|
+
} catch {
|
|
62
|
+
// Do nothing...
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
let err
|
|
67
|
+
const stackTraceLimit = Error.stackTraceLimit
|
|
68
|
+
Error.stackTraceLimit = 0
|
|
69
|
+
try {
|
|
70
|
+
err = new ResponseError('Response Error', this.#statusCode, {
|
|
71
|
+
body: this.#body,
|
|
72
|
+
headers: this.#headers
|
|
73
|
+
})
|
|
74
|
+
} finally {
|
|
75
|
+
Error.stackTraceLimit = stackTraceLimit
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
super.onResponseError(controller, err)
|
|
79
|
+
} else {
|
|
80
|
+
super.onResponseEnd(controller, trailers)
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
onResponseError (controller, err) {
|
|
85
|
+
super.onResponseError(controller, err)
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
module.exports = () => {
|
|
90
|
+
return (dispatch) => {
|
|
91
|
+
return function Intercept (opts, handler) {
|
|
92
|
+
return dispatch(opts, new ResponseErrorHandler(opts, { handler }))
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict'
|
|
2
|
+
const RetryHandler = require('../handler/retry-handler')
|
|
3
|
+
|
|
4
|
+
module.exports = globalOpts => {
|
|
5
|
+
return dispatch => {
|
|
6
|
+
return function retryInterceptor (opts, handler) {
|
|
7
|
+
return dispatch(
|
|
8
|
+
opts,
|
|
9
|
+
new RetryHandler(
|
|
10
|
+
{ ...opts, retryOptions: { ...globalOpts, ...opts.retryOptions } },
|
|
11
|
+
{
|
|
12
|
+
handler,
|
|
13
|
+
dispatch
|
|
14
|
+
}
|
|
15
|
+
)
|
|
16
|
+
)
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,195 @@
|
|
|
1
|
+
export type IntDict = Record<string, number>;
|
|
2
|
+
export declare const ERROR: IntDict;
|
|
3
|
+
export declare const TYPE: IntDict;
|
|
4
|
+
export declare const FLAGS: IntDict;
|
|
5
|
+
export declare const LENIENT_FLAGS: IntDict;
|
|
6
|
+
export declare const METHODS: IntDict;
|
|
7
|
+
export declare const STATUSES: IntDict;
|
|
8
|
+
export declare const FINISH: IntDict;
|
|
9
|
+
export declare const HEADER_STATE: IntDict;
|
|
10
|
+
export declare const METHODS_HTTP: number[];
|
|
11
|
+
export declare const METHODS_ICE: number[];
|
|
12
|
+
export declare const METHODS_RTSP: number[];
|
|
13
|
+
export declare const METHOD_MAP: IntDict;
|
|
14
|
+
export declare const H_METHOD_MAP: {
|
|
15
|
+
[k: string]: number;
|
|
16
|
+
};
|
|
17
|
+
export declare const STATUSES_HTTP: number[];
|
|
18
|
+
export type CharList = (string | number)[];
|
|
19
|
+
export declare const ALPHA: CharList;
|
|
20
|
+
export declare const NUM_MAP: {
|
|
21
|
+
0: number;
|
|
22
|
+
1: number;
|
|
23
|
+
2: number;
|
|
24
|
+
3: number;
|
|
25
|
+
4: number;
|
|
26
|
+
5: number;
|
|
27
|
+
6: number;
|
|
28
|
+
7: number;
|
|
29
|
+
8: number;
|
|
30
|
+
9: number;
|
|
31
|
+
};
|
|
32
|
+
export declare const HEX_MAP: {
|
|
33
|
+
0: number;
|
|
34
|
+
1: number;
|
|
35
|
+
2: number;
|
|
36
|
+
3: number;
|
|
37
|
+
4: number;
|
|
38
|
+
5: number;
|
|
39
|
+
6: number;
|
|
40
|
+
7: number;
|
|
41
|
+
8: number;
|
|
42
|
+
9: number;
|
|
43
|
+
A: number;
|
|
44
|
+
B: number;
|
|
45
|
+
C: number;
|
|
46
|
+
D: number;
|
|
47
|
+
E: number;
|
|
48
|
+
F: number;
|
|
49
|
+
a: number;
|
|
50
|
+
b: number;
|
|
51
|
+
c: number;
|
|
52
|
+
d: number;
|
|
53
|
+
e: number;
|
|
54
|
+
f: number;
|
|
55
|
+
};
|
|
56
|
+
export declare const NUM: CharList;
|
|
57
|
+
export declare const ALPHANUM: CharList;
|
|
58
|
+
export declare const MARK: CharList;
|
|
59
|
+
export declare const USERINFO_CHARS: CharList;
|
|
60
|
+
export declare const URL_CHAR: CharList;
|
|
61
|
+
export declare const HEX: CharList;
|
|
62
|
+
export declare const TOKEN: CharList;
|
|
63
|
+
export declare const HEADER_CHARS: CharList;
|
|
64
|
+
export declare const CONNECTION_TOKEN_CHARS: CharList;
|
|
65
|
+
export declare const QUOTED_STRING: CharList;
|
|
66
|
+
export declare const HTAB_SP_VCHAR_OBS_TEXT: CharList;
|
|
67
|
+
export declare const MAJOR: {
|
|
68
|
+
0: number;
|
|
69
|
+
1: number;
|
|
70
|
+
2: number;
|
|
71
|
+
3: number;
|
|
72
|
+
4: number;
|
|
73
|
+
5: number;
|
|
74
|
+
6: number;
|
|
75
|
+
7: number;
|
|
76
|
+
8: number;
|
|
77
|
+
9: number;
|
|
78
|
+
};
|
|
79
|
+
export declare const MINOR: {
|
|
80
|
+
0: number;
|
|
81
|
+
1: number;
|
|
82
|
+
2: number;
|
|
83
|
+
3: number;
|
|
84
|
+
4: number;
|
|
85
|
+
5: number;
|
|
86
|
+
6: number;
|
|
87
|
+
7: number;
|
|
88
|
+
8: number;
|
|
89
|
+
9: number;
|
|
90
|
+
};
|
|
91
|
+
export declare const SPECIAL_HEADERS: {
|
|
92
|
+
connection: number;
|
|
93
|
+
'content-length': number;
|
|
94
|
+
'proxy-connection': number;
|
|
95
|
+
'transfer-encoding': number;
|
|
96
|
+
upgrade: number;
|
|
97
|
+
};
|
|
98
|
+
declare const _default: {
|
|
99
|
+
ERROR: IntDict;
|
|
100
|
+
TYPE: IntDict;
|
|
101
|
+
FLAGS: IntDict;
|
|
102
|
+
LENIENT_FLAGS: IntDict;
|
|
103
|
+
METHODS: IntDict;
|
|
104
|
+
STATUSES: IntDict;
|
|
105
|
+
FINISH: IntDict;
|
|
106
|
+
HEADER_STATE: IntDict;
|
|
107
|
+
ALPHA: CharList;
|
|
108
|
+
NUM_MAP: {
|
|
109
|
+
0: number;
|
|
110
|
+
1: number;
|
|
111
|
+
2: number;
|
|
112
|
+
3: number;
|
|
113
|
+
4: number;
|
|
114
|
+
5: number;
|
|
115
|
+
6: number;
|
|
116
|
+
7: number;
|
|
117
|
+
8: number;
|
|
118
|
+
9: number;
|
|
119
|
+
};
|
|
120
|
+
HEX_MAP: {
|
|
121
|
+
0: number;
|
|
122
|
+
1: number;
|
|
123
|
+
2: number;
|
|
124
|
+
3: number;
|
|
125
|
+
4: number;
|
|
126
|
+
5: number;
|
|
127
|
+
6: number;
|
|
128
|
+
7: number;
|
|
129
|
+
8: number;
|
|
130
|
+
9: number;
|
|
131
|
+
A: number;
|
|
132
|
+
B: number;
|
|
133
|
+
C: number;
|
|
134
|
+
D: number;
|
|
135
|
+
E: number;
|
|
136
|
+
F: number;
|
|
137
|
+
a: number;
|
|
138
|
+
b: number;
|
|
139
|
+
c: number;
|
|
140
|
+
d: number;
|
|
141
|
+
e: number;
|
|
142
|
+
f: number;
|
|
143
|
+
};
|
|
144
|
+
NUM: CharList;
|
|
145
|
+
ALPHANUM: CharList;
|
|
146
|
+
MARK: CharList;
|
|
147
|
+
USERINFO_CHARS: CharList;
|
|
148
|
+
URL_CHAR: CharList;
|
|
149
|
+
HEX: CharList;
|
|
150
|
+
TOKEN: CharList;
|
|
151
|
+
HEADER_CHARS: CharList;
|
|
152
|
+
CONNECTION_TOKEN_CHARS: CharList;
|
|
153
|
+
QUOTED_STRING: CharList;
|
|
154
|
+
HTAB_SP_VCHAR_OBS_TEXT: CharList;
|
|
155
|
+
MAJOR: {
|
|
156
|
+
0: number;
|
|
157
|
+
1: number;
|
|
158
|
+
2: number;
|
|
159
|
+
3: number;
|
|
160
|
+
4: number;
|
|
161
|
+
5: number;
|
|
162
|
+
6: number;
|
|
163
|
+
7: number;
|
|
164
|
+
8: number;
|
|
165
|
+
9: number;
|
|
166
|
+
};
|
|
167
|
+
MINOR: {
|
|
168
|
+
0: number;
|
|
169
|
+
1: number;
|
|
170
|
+
2: number;
|
|
171
|
+
3: number;
|
|
172
|
+
4: number;
|
|
173
|
+
5: number;
|
|
174
|
+
6: number;
|
|
175
|
+
7: number;
|
|
176
|
+
8: number;
|
|
177
|
+
9: number;
|
|
178
|
+
};
|
|
179
|
+
SPECIAL_HEADERS: {
|
|
180
|
+
connection: number;
|
|
181
|
+
'content-length': number;
|
|
182
|
+
'proxy-connection': number;
|
|
183
|
+
'transfer-encoding': number;
|
|
184
|
+
upgrade: number;
|
|
185
|
+
};
|
|
186
|
+
METHODS_HTTP: number[];
|
|
187
|
+
METHODS_ICE: number[];
|
|
188
|
+
METHODS_RTSP: number[];
|
|
189
|
+
METHOD_MAP: IntDict;
|
|
190
|
+
H_METHOD_MAP: {
|
|
191
|
+
[k: string]: number;
|
|
192
|
+
};
|
|
193
|
+
STATUSES_HTTP: number[];
|
|
194
|
+
};
|
|
195
|
+
export default _default;
|