@encore.dev/sdk 2.0.0-beta.15 → 2.0.0-beta.17
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 +111 -101
- package/app_meta.ts +56 -54
- package/config/config.ts +60 -57
- package/config/secrets.ts +45 -52
- package/config/value.ts +23 -26
- package/cron/mod.ts +28 -29
- package/dist/app_meta.d.ts +52 -50
- package/dist/app_meta.d.ts.map +1 -1
- package/dist/app_meta.js +2 -2
- package/dist/app_meta.js.map +1 -1
- package/dist/config/config.d.ts +58 -55
- package/dist/config/config.d.ts.map +1 -1
- package/dist/config/config.js +8 -9
- package/dist/config/config.js.map +1 -1
- package/dist/config/secrets.d.ts +45 -52
- package/dist/config/secrets.d.ts.map +1 -1
- package/dist/config/secrets.js +8 -9
- package/dist/config/secrets.js.map +1 -1
- package/dist/config/value.d.ts +20 -23
- package/dist/config/value.d.ts.map +1 -1
- package/dist/config/value.js +20 -23
- package/dist/config/value.js.map +1 -1
- package/dist/cron/mod.d.ts +26 -27
- package/dist/cron/mod.d.ts.map +1 -1
- package/dist/cron/mod.js +13 -14
- package/dist/cron/mod.js.map +1 -1
- package/dist/frontends/mod.d.ts +20 -19
- package/dist/frontends/mod.d.ts.map +1 -1
- package/dist/frontends/mod.js +20 -19
- package/dist/frontends/mod.js.map +1 -1
- package/dist/gateway/errors.d.ts +28 -30
- package/dist/gateway/errors.d.ts.map +1 -1
- package/dist/gateway/errors.js +29 -31
- package/dist/gateway/errors.js.map +1 -1
- package/dist/gateway/match.d.ts +54 -54
- package/dist/gateway/match.d.ts.map +1 -1
- package/dist/gateway/match.js +56 -56
- package/dist/gateway/match.js.map +1 -1
- package/dist/gateway/middleware.d.ts +62 -64
- package/dist/gateway/middleware.d.ts.map +1 -1
- package/dist/gateway/middleware.js +1 -1
- package/dist/gateway/middleware.js.map +1 -1
- package/dist/gateway/mod.d.ts +64 -67
- package/dist/gateway/mod.d.ts.map +1 -1
- package/dist/gateway/mod.js +72 -76
- package/dist/gateway/mod.js.map +1 -1
- package/dist/gateway/request.d.ts +138 -134
- package/dist/gateway/request.d.ts.map +1 -1
- package/dist/gateway/request.js +117 -108
- package/dist/gateway/request.js.map +1 -1
- package/dist/gateway/serve.d.ts +29 -34
- package/dist/gateway/serve.d.ts.map +1 -1
- package/dist/gateway/serve.js +51 -56
- package/dist/gateway/serve.js.map +1 -1
- package/dist/gateways/mod.d.ts +23 -21
- package/dist/gateways/mod.d.ts.map +1 -1
- package/dist/gateways/mod.js +25 -23
- package/dist/gateways/mod.js.map +1 -1
- package/dist/internal/runtime/napi/napi.cjs +1 -1
- package/dist/internal/runtime/napi/napi.d.cts +10 -3
- package/dist/internal/runtime/shutdown.d.ts +75 -57
- package/dist/internal/runtime/shutdown.d.ts.map +1 -1
- package/dist/internal/runtime/shutdown.js +88 -84
- package/dist/internal/runtime/shutdown.js.map +1 -1
- package/dist/log/logger.d.ts +43 -37
- package/dist/log/logger.d.ts.map +1 -1
- package/dist/log/logger.js +26 -25
- package/dist/log/logger.js.map +1 -1
- package/dist/metrics/mod.d.ts +133 -114
- package/dist/metrics/mod.d.ts.map +1 -1
- package/dist/metrics/mod.js +109 -101
- package/dist/metrics/mod.js.map +1 -1
- package/dist/otel.d.ts +6 -3
- package/dist/otel.d.ts.map +1 -1
- package/dist/otel.js +6 -3
- package/dist/otel.js.map +1 -1
- package/dist/pubsub/subscription.d.ts +88 -116
- package/dist/pubsub/subscription.d.ts.map +1 -1
- package/dist/pubsub/subscription.js +14 -17
- package/dist/pubsub/subscription.js.map +1 -1
- package/dist/pubsub/topic.d.ts +86 -113
- package/dist/pubsub/topic.d.ts.map +1 -1
- package/dist/pubsub/topic.js +68 -82
- package/dist/pubsub/topic.js.map +1 -1
- package/dist/reqctx/mod.d.ts +83 -86
- package/dist/reqctx/mod.d.ts.map +1 -1
- package/dist/reqctx/mod.js +39 -41
- package/dist/reqctx/mod.js.map +1 -1
- package/dist/services/index.d.ts +76 -75
- package/dist/services/index.d.ts.map +1 -1
- package/dist/services/index.js +73 -71
- package/dist/services/index.js.map +1 -1
- package/dist/shutdown/mod.d.ts +26 -25
- package/dist/shutdown/mod.d.ts.map +1 -1
- package/dist/shutdown/mod.js +26 -25
- package/dist/shutdown/mod.js.map +1 -1
- package/dist/storage/clickhouse/database.d.ts +113 -115
- package/dist/storage/clickhouse/database.d.ts.map +1 -1
- package/dist/storage/clickhouse/database.js +65 -79
- package/dist/storage/clickhouse/database.js.map +1 -1
- package/dist/storage/clickhouse/errors.d.ts +25 -26
- package/dist/storage/clickhouse/errors.d.ts.map +1 -1
- package/dist/storage/clickhouse/errors.js +15 -17
- package/dist/storage/clickhouse/errors.js.map +1 -1
- package/dist/storage/clickhouse/mod.d.ts +10 -10
- package/dist/storage/clickhouse/mod.js +10 -10
- package/dist/storage/objects/bucket.d.ts +196 -225
- package/dist/storage/objects/bucket.d.ts.map +1 -1
- package/dist/storage/objects/bucket.js +71 -84
- package/dist/storage/objects/bucket.js.map +1 -1
- package/dist/storage/objects/error.d.ts +4 -4
- package/dist/storage/objects/error.js +4 -4
- package/dist/storage/postgres/database.d.ts +124 -149
- package/dist/storage/postgres/database.d.ts.map +1 -1
- package/dist/storage/postgres/database.js +98 -135
- package/dist/storage/postgres/database.js.map +1 -1
- package/dist/storage/postgres/errors.d.ts +42 -48
- package/dist/storage/postgres/errors.d.ts.map +1 -1
- package/dist/storage/postgres/errors.js +44 -51
- package/dist/storage/postgres/errors.js.map +1 -1
- package/dist/storage/postgres/interval.d.ts +19 -19
- package/dist/storage/postgres/interval.d.ts.map +1 -1
- package/dist/storage/postgres/interval.js +21 -21
- package/dist/storage/postgres/interval.js.map +1 -1
- package/dist/storage/redis/bitfield.d.ts +48 -23
- package/dist/storage/redis/bitfield.d.ts.map +1 -1
- package/dist/storage/redis/bitfield.js +38 -19
- package/dist/storage/redis/bitfield.js.map +1 -1
- package/dist/storage/redis/command.d.ts +16 -12
- package/dist/storage/redis/command.d.ts.map +1 -1
- package/dist/storage/redis/command.js +16 -12
- package/dist/storage/redis/command.js.map +1 -1
- package/dist/storage/redis/commands.d.ts +99 -100
- package/dist/storage/redis/commands.d.ts.map +1 -1
- package/dist/storage/redis/commands.js +84 -85
- package/dist/storage/redis/commands.js.map +1 -1
- package/dist/storage/redis/database.d.ts +138 -122
- package/dist/storage/redis/database.d.ts.map +1 -1
- package/dist/storage/redis/database.js +120 -101
- package/dist/storage/redis/database.js.map +1 -1
- package/dist/storage/redis/mod.d.ts +52 -48
- package/dist/storage/redis/mod.d.ts.map +1 -1
- package/dist/storage/redis/mod.js +52 -48
- package/dist/storage/redis/mod.js.map +1 -1
- package/dist/storage/redis/options.d.ts +26 -24
- package/dist/storage/redis/options.d.ts.map +1 -1
- package/dist/storage/redis/options.js.map +1 -1
- package/dist/storage/redis/pubsub.d.ts +16 -16
- package/dist/storage/redis/pubsub.d.ts.map +1 -1
- package/dist/storage/redis/pubsub.js +14 -14
- package/dist/storage/redis/pubsub.js.map +1 -1
- package/dist/storage/redis/reply.d.ts +80 -72
- package/dist/storage/redis/reply.d.ts.map +1 -1
- package/dist/storage/redis/reply.js +53 -46
- package/dist/storage/redis/reply.js.map +1 -1
- package/dist/storage/redis/scan.d.ts +4 -4
- package/dist/storage/redis/scan.d.ts.map +1 -1
- package/dist/storage/redis/scan.js +6 -6
- package/dist/storage/redis/scan.js.map +1 -1
- package/dist/storage/redis/script.d.ts +28 -21
- package/dist/storage/redis/script.d.ts.map +1 -1
- package/dist/storage/redis/script.js +29 -22
- package/dist/storage/redis/script.js.map +1 -1
- package/dist/storage/redis/target.d.ts +17 -1
- package/dist/storage/redis/target.d.ts.map +1 -1
- package/dist/storage/redis/target.js +30 -1
- package/dist/storage/redis/target.js.map +1 -1
- package/dist/storage/redis/wire.d.ts +6 -6
- package/dist/storage/redis/wire.d.ts.map +1 -1
- package/dist/storage/redis/wire.js +6 -6
- package/dist/storage/redis/wire.js.map +1 -1
- package/dist/testing/mod.d.ts +83 -88
- package/dist/testing/mod.d.ts.map +1 -1
- package/dist/testing/mod.js +75 -81
- package/dist/testing/mod.js.map +1 -1
- package/dist/testing/playwright.d.ts +28 -32
- package/dist/testing/playwright.d.ts.map +1 -1
- package/dist/testing/playwright.js +22 -27
- package/dist/testing/playwright.js.map +1 -1
- package/dist/testing/puppeteer.d.ts +11 -12
- package/dist/testing/puppeteer.d.ts.map +1 -1
- package/dist/testing/puppeteer.js +17 -18
- package/dist/testing/puppeteer.js.map +1 -1
- package/dist/testing/system.d.ts +72 -90
- package/dist/testing/system.d.ts.map +1 -1
- package/dist/testing/system.js +90 -107
- package/dist/testing/system.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/frontends/mod.test.ts +6 -2
- package/frontends/mod.ts +20 -19
- package/gateway/errors.ts +30 -32
- package/gateway/match.ts +61 -57
- package/gateway/middleware.ts +62 -64
- package/gateway/mod.ts +73 -76
- package/gateway/request.ts +143 -140
- package/gateway/serve.ts +58 -63
- package/gateways/mod.ts +25 -23
- package/internal/runtime/napi/napi.cjs +1 -1
- package/internal/runtime/napi/napi.d.cts +10 -3
- package/internal/runtime/shutdown.ts +113 -101
- package/log/logger.test.ts +8 -0
- package/log/logger.ts +48 -45
- package/metrics/mod.ts +138 -122
- package/otel.ts +6 -3
- package/package.json +1 -1
- package/pubsub/subscription.ts +93 -123
- package/pubsub/topic.ts +96 -130
- package/reqctx/mod.ts +83 -86
- package/services/index.ts +78 -78
- package/shutdown/mod.ts +26 -25
- package/storage/clickhouse/database.ts +115 -129
- package/storage/clickhouse/errors.ts +27 -29
- package/storage/clickhouse/mod.ts +10 -10
- package/storage/objects/bucket.ts +209 -239
- package/storage/objects/error.ts +4 -4
- package/storage/postgres/database.ts +131 -164
- package/storage/postgres/errors.ts +45 -52
- package/storage/postgres/interval.ts +21 -21
- package/storage/redis/bitfield.ts +51 -26
- package/storage/redis/command.ts +16 -12
- package/storage/redis/commands.ts +99 -100
- package/storage/redis/database.ts +145 -123
- package/storage/redis/mod.ts +52 -48
- package/storage/redis/options.ts +26 -24
- package/storage/redis/pubsub.ts +14 -14
- package/storage/redis/redis.test.ts +17 -2
- package/storage/redis/reply.ts +85 -77
- package/storage/redis/scan.ts +6 -6
- package/storage/redis/script.ts +29 -22
- package/storage/redis/target.ts +34 -1
- package/storage/redis/wire.ts +8 -8
- package/testing/mod.ts +99 -105
- package/testing/playwright.ts +32 -37
- package/testing/puppeteer.ts +22 -23
- package/testing/system.ts +117 -133
package/gateway/mod.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
2
|
+
* Gateway middleware for authenticating, authorizing, rate-limiting, logging,
|
|
3
|
+
* or metering public requests before they reach a service and after responses
|
|
4
|
+
* return.
|
|
5
5
|
*
|
|
6
|
-
* A gateway with
|
|
7
|
-
* section in
|
|
8
|
-
* `encore.gateway.json`
|
|
9
|
-
* service
|
|
6
|
+
* A gateway with custom middleware is hosted by a service that includes a
|
|
7
|
+
* `gateway` section in its `encore.service.json`. The section accepts the same
|
|
8
|
+
* options as `encore.gateway.json` except `name`, since the gateway takes the
|
|
9
|
+
* name of its hosting service:
|
|
10
10
|
*
|
|
11
11
|
* ```json
|
|
12
12
|
* {
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* }
|
|
18
18
|
* ```
|
|
19
19
|
*
|
|
20
|
-
* The service's
|
|
21
|
-
* else.
|
|
22
|
-
* and configs, and
|
|
20
|
+
* The service's entry point serves the gateway with its middleware and nothing
|
|
21
|
+
* else. Like any Encore service, it can declare its own secrets, caches,
|
|
22
|
+
* databases, Pub/Sub topics, and configs, and call other services.
|
|
23
23
|
*
|
|
24
24
|
* ```typescript
|
|
25
25
|
* import * as gateway from "@encore.dev/sdk/gateway";
|
|
@@ -43,64 +43,62 @@
|
|
|
43
43
|
*
|
|
44
44
|
* ## Hooks
|
|
45
45
|
*
|
|
46
|
-
* A {@link Middleware} is
|
|
46
|
+
* A {@link Middleware} is invoked only for the hooks it defines:
|
|
47
47
|
*
|
|
48
|
-
* - `onRequest
|
|
49
|
-
*
|
|
50
|
-
* - `onRequestBody` and `onResponseBody
|
|
51
|
-
*
|
|
52
|
-
* - `onResponse
|
|
53
|
-
*
|
|
54
|
-
*
|
|
48
|
+
* - `onRequest`: runs before the request is forwarded; can allow it through
|
|
49
|
+
* (optionally modified) or answer it directly.
|
|
50
|
+
* - `onRequestBody` and `onResponseBody`: observe each chunk of the request or
|
|
51
|
+
* response body as it streams.
|
|
52
|
+
* - `onResponse`: runs before the response is sent to the client; can edit
|
|
53
|
+
* response headers.
|
|
54
|
+
* - `onComplete`: runs asynchronously after the request finishes; ideal for
|
|
55
|
+
* logging, metrics, or billing.
|
|
55
56
|
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* request's headers, query parameters and cookies; each reaches JavaScript
|
|
61
|
-
* only as the hook reads it.
|
|
57
|
+
* Encore evaluates each middleware's `match` condition before dispatching to
|
|
58
|
+
* JavaScript, so unmatched requests incur no JS overhead, and a middleware
|
|
59
|
+
* that only defines `onComplete` adds no latency to the request path. Headers,
|
|
60
|
+
* query parameters, and cookies are passed into JavaScript lazily when read.
|
|
62
61
|
*
|
|
63
|
-
* Middleware
|
|
64
|
-
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
62
|
+
* Middleware only sees public requests routed by the gateway. Service-to-service
|
|
63
|
+
* calls, Pub/Sub pushes, and unexposed paths are handled internally by Encore,
|
|
64
|
+
* as are CORS preflight requests (unless CORS is disabled via `"cors": false`,
|
|
65
|
+
* in which case preflights are routed like any other request).
|
|
67
66
|
*
|
|
68
67
|
* ## Answering a request
|
|
69
68
|
*
|
|
70
|
-
* `onRequest` returns nothing to
|
|
71
|
-
* {@link Rejection} to answer it
|
|
72
|
-
*
|
|
73
|
-
* any
|
|
74
|
-
*
|
|
75
|
-
*
|
|
69
|
+
* `onRequest` returns nothing (`void` / `undefined`) to allow the request
|
|
70
|
+
* through, or returns or throws a {@link Rejection} to answer it immediately.
|
|
71
|
+
* Use {@link reject} to respond with a standard Encore error, or {@link respond}
|
|
72
|
+
* for any custom HTTP response (such as a redirect). Any other thrown error or
|
|
73
|
+
* timeout fails the hook, and the middleware's `onError` policy decides what
|
|
74
|
+
* happens next: `"failClosed"` rejects the request, while `"failOpen"` lets it
|
|
75
|
+
* through.
|
|
76
76
|
*
|
|
77
77
|
* ## Request Context
|
|
78
78
|
*
|
|
79
|
-
* `onRequest`
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* forwarded.
|
|
79
|
+
* `onRequest` can populate Request Context fields (`@encore.dev/sdk/reqctx`)
|
|
80
|
+
* with {@link Request.set}. Subsequent middleware, the target service, and
|
|
81
|
+
* downstream services called with that request context can read them via
|
|
82
|
+
* `field.get()`. Clients cannot forge Request Context fields. Every hook runs
|
|
83
|
+
* inside its request's context and can read fields with either `field.get()`
|
|
84
|
+
* or {@link Request.get} (in `onComplete`, reflecting the forwarded state).
|
|
86
85
|
*
|
|
87
86
|
* ## Concurrency
|
|
88
87
|
*
|
|
89
|
-
* Hooks run on the event loop.
|
|
90
|
-
*
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
-
* the hook awaits to stop too.
|
|
88
|
+
* Hooks run on the JavaScript event loop. For a single request, a middleware's
|
|
89
|
+
* hooks execute sequentially in lifecycle order; hooks for different requests
|
|
90
|
+
* run concurrently. Avoid blocking the event loop, as doing so stalls other
|
|
91
|
+
* requests. `onRequest` and `onResponse` enforce `timeoutMs` and abort
|
|
92
|
+
* {@link Request.signal} on expiry so awaited work can cancel cleanly.
|
|
95
93
|
*
|
|
96
|
-
*
|
|
97
|
-
* hooks it cannot queue
|
|
98
|
-
* requests
|
|
94
|
+
* If JavaScript falls too far behind incoming traffic, the gateway rejects
|
|
95
|
+
* hooks it cannot queue (handled according to `onError`) rather than buffering
|
|
96
|
+
* requests unboundedly.
|
|
99
97
|
*
|
|
100
|
-
* While a hook
|
|
101
|
-
*
|
|
102
|
-
*
|
|
103
|
-
* fields
|
|
98
|
+
* While a hook executes, the request's trace context and Request Context are
|
|
99
|
+
* active: newly created spans attach to the trace, `field.get()` reads the
|
|
100
|
+
* request's fields, and outgoing service calls propagate both (including any
|
|
101
|
+
* fields set so far in `onRequest`).
|
|
104
102
|
*
|
|
105
103
|
* @module
|
|
106
104
|
*/
|
|
@@ -136,39 +134,38 @@ export type {Decision, ErrorPolicy, Middleware} from './middleware';
|
|
|
136
134
|
|
|
137
135
|
let served = false;
|
|
138
136
|
|
|
139
|
-
/**
|
|
140
|
-
* program loads. */
|
|
137
|
+
/** Returns the native gateway bindings loaded by the gateway runtime variant. */
|
|
141
138
|
function native(): GatewayNative {
|
|
142
139
|
const n = napi as unknown as Partial<GatewayNative>;
|
|
143
140
|
if (typeof n.gatewayServe !== 'function') {
|
|
144
141
|
throw new GatewayError(
|
|
145
|
-
'this process
|
|
146
|
-
'
|
|
147
|
-
'
|
|
142
|
+
'this process is not running the gateway variant of the Encore runtime: ' +
|
|
143
|
+
'add a "gateway" section to encore.service.json so Encore starts it as a gateway ' +
|
|
144
|
+
'(with ENCORE_GATEWAY_LISTEN set)',
|
|
148
145
|
);
|
|
149
146
|
}
|
|
150
147
|
return n as GatewayNative;
|
|
151
148
|
}
|
|
152
149
|
|
|
153
150
|
/**
|
|
154
|
-
*
|
|
155
|
-
* Encore shuts the process down. Call
|
|
156
|
-
* entry point.
|
|
157
|
-
*
|
|
158
|
-
*
|
|
159
|
-
* second SIGTERM
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
*
|
|
163
|
-
*
|
|
164
|
-
*
|
|
165
|
-
*
|
|
166
|
-
* regular expression; or the gateway is already served.
|
|
151
|
+
* Starts serving the gateway hosted by this service with the given `middleware`
|
|
152
|
+
* in order, running until Encore shuts the process down. Call this once at the
|
|
153
|
+
* end of the service's entry point.
|
|
154
|
+
*
|
|
155
|
+
* On the first `SIGTERM`, the gateway stops accepting new connections while
|
|
156
|
+
* draining in-flight hooks; a second `SIGTERM` accelerates shutdown. The
|
|
157
|
+
* returned promise resolves after the gateway stops and all queued hooks have
|
|
158
|
+
* finished, at which point Encore exits the process.
|
|
159
|
+
*
|
|
160
|
+
* Rejects with {@link GatewayError} if the process is not running as an Encore
|
|
161
|
+
* gateway, if any middleware definition or matcher is invalid (such as a
|
|
162
|
+
* duplicate name or invalid regex), or if `serve` has already been called.
|
|
167
163
|
*/
|
|
168
164
|
export async function serve(...middleware: Middleware[]): Promise<void> {
|
|
169
165
|
const checked = check(middleware);
|
|
170
166
|
const gw = native();
|
|
171
|
-
if (served)
|
|
167
|
+
if (served)
|
|
168
|
+
throw new GatewayError('gateway.serve can only be called once per process');
|
|
172
169
|
served = true;
|
|
173
170
|
|
|
174
171
|
const mws = new Map<number, Registered>();
|
|
@@ -187,7 +184,7 @@ export async function serve(...middleware: Middleware[]): Promise<void> {
|
|
|
187
184
|
try {
|
|
188
185
|
dispatcher.deliver(events);
|
|
189
186
|
} catch (err) {
|
|
190
|
-
log.error(err,
|
|
187
|
+
log.error(err, 'failed to dispatch gateway middleware events');
|
|
191
188
|
}
|
|
192
189
|
});
|
|
193
190
|
} catch (err) {
|
|
@@ -197,7 +194,7 @@ export async function serve(...middleware: Middleware[]): Promise<void> {
|
|
|
197
194
|
} catch (err) {
|
|
198
195
|
throw new GatewayError(err instanceof Error ? err.message : String(err));
|
|
199
196
|
}
|
|
200
|
-
log.debug(`serving
|
|
197
|
+
log.debug(`serving gateway on ${listen}`);
|
|
201
198
|
forceCleanupOnRepeat('SIGTERM');
|
|
202
199
|
|
|
203
200
|
await dispatcher.closed;
|
|
@@ -205,7 +202,7 @@ export async function serve(...middleware: Middleware[]): Promise<void> {
|
|
|
205
202
|
const dropped = gw.gatewayDropped();
|
|
206
203
|
if (dropped > 0) {
|
|
207
204
|
log.warn(
|
|
208
|
-
`dropped ${dropped} body chunks and
|
|
205
|
+
`dropped ${dropped} body chunks and completion events because middleware could not keep up`,
|
|
209
206
|
);
|
|
210
207
|
}
|
|
211
208
|
}
|