@encore.dev/sdk 2.0.0-beta.14 → 2.0.0-beta.16
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 +144 -90
- package/app_meta.ts +56 -54
- package/config/config.test.ts +47 -13
- package/config/config.ts +60 -57
- package/config/secrets.ts +47 -50
- package/config/value.ts +23 -26
- package/cron/mod.test.ts +12 -0
- package/cron/mod.ts +37 -22
- 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 -50
- package/dist/config/secrets.d.ts.map +1 -1
- package/dist/config/secrets.js +11 -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 +34 -20
- package/dist/cron/mod.d.ts.map +1 -1
- package/dist/cron/mod.js +13 -13
- 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/otel/http.d.ts +4 -2
- package/dist/internal/otel/http.d.ts.map +1 -1
- package/dist/internal/otel/http.js +32 -5
- package/dist/internal/otel/http.js.map +1 -1
- package/dist/internal/runtime/napi/napi.cjs +6 -5
- package/dist/internal/runtime/napi/napi.d.cts +58 -16
- 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/redaction/mod.d.ts +62 -0
- package/dist/redaction/mod.d.ts.map +1 -0
- package/dist/redaction/mod.js +102 -0
- package/dist/redaction/mod.js.map +1 -0
- 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 +230 -203
- package/dist/storage/objects/bucket.d.ts.map +1 -1
- package/dist/storage/objects/bucket.js +146 -106
- 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/objects/mod.d.ts +1 -1
- package/dist/storage/objects/mod.d.ts.map +1 -1
- package/dist/storage/objects/mod.js.map +1 -1
- package/dist/storage/objects/refs.d.ts +2 -5
- package/dist/storage/objects/refs.d.ts.map +1 -1
- package/dist/storage/objects/refs.js.map +1 -1
- 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/tracing/http.d.ts +2 -1
- package/dist/tracing/http.d.ts.map +1 -1
- package/dist/tracing/http.js +2 -1
- package/dist/tracing/http.js.map +1 -1
- package/dist/tracing/node.d.ts.map +1 -1
- package/dist/tracing/node.js +1 -1
- package/dist/tracing/node.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/otel/http.test.ts +50 -0
- package/internal/otel/http.ts +40 -5
- package/internal/runtime/napi/napi.cjs +6 -5
- package/internal/runtime/napi/napi.d.cts +58 -16
- 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 +6 -1
- package/pubsub/subscription.ts +93 -123
- package/pubsub/topic.ts +96 -130
- package/redaction/bridge.test.ts +99 -0
- package/redaction/mod.test.ts +188 -0
- package/redaction/mod.ts +226 -0
- 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.test.ts +168 -16
- package/storage/objects/bucket.ts +336 -247
- package/storage/objects/error.ts +4 -4
- package/storage/objects/mod.ts +1 -0
- package/storage/objects/refs.ts +2 -5
- 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/tracing/http.ts +2 -1
- package/tracing/native.test.ts +158 -8
- package/tracing/node.ts +1 -0
|
@@ -4,8 +4,8 @@ import { AsyncLocalStorage } from 'node:async_hooks';
|
|
|
4
4
|
import type { SpanContext } from '@opentelemetry/api';
|
|
5
5
|
import { Field } from '../reqctx/mod.js';
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* Native request view whose headers, query parameters, and cookies are loaded
|
|
8
|
+
* into JavaScript lazily on read.
|
|
9
9
|
* @internal
|
|
10
10
|
*/
|
|
11
11
|
export interface NativeView {
|
|
@@ -18,21 +18,22 @@ export interface NativeView {
|
|
|
18
18
|
readonly clientIp?: string | null;
|
|
19
19
|
readonly traceparent?: string | null;
|
|
20
20
|
readonly tracestate?: string | null;
|
|
21
|
-
/**
|
|
21
|
+
/** Encoded Request Context fields set by earlier middleware. */
|
|
22
22
|
readonly context?: readonly NativeField[] | null;
|
|
23
23
|
pathParam(name: string): string | null | undefined;
|
|
24
24
|
headerValues(name: string): string[];
|
|
25
25
|
queryValues(name: string): string[];
|
|
26
26
|
cookie(name: string): string | null | undefined;
|
|
27
27
|
}
|
|
28
|
-
/**
|
|
28
|
+
/** Native response header view. @internal */
|
|
29
29
|
export interface NativeHeaders {
|
|
30
30
|
values(name: string): string[];
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
34
|
-
* combined with
|
|
35
|
-
*
|
|
33
|
+
* Bitmask flags identifying later middleware hooks that can be skipped with
|
|
34
|
+
* {@link Request.skip}, combined with `|` (e.g.
|
|
35
|
+
* `Hook.Response | Hook.Complete`). `onRequest` is omitted because it is the
|
|
36
|
+
* hook that calls `skip`.
|
|
36
37
|
*/
|
|
37
38
|
export declare const Hook: {
|
|
38
39
|
/** `onRequestBody`. */
|
|
@@ -44,64 +45,61 @@ export declare const Hook: {
|
|
|
44
45
|
/** `onComplete`. */
|
|
45
46
|
readonly Complete: number;
|
|
46
47
|
};
|
|
47
|
-
/** A
|
|
48
|
+
/** A {@link Hook} flag or bitwise-OR combination of flags. */
|
|
48
49
|
export type Hooks = number;
|
|
49
|
-
/**
|
|
50
|
+
/** Allowed value type for request span attributes. */
|
|
50
51
|
export type AttributeValue = string | boolean | number;
|
|
51
|
-
/**
|
|
52
|
+
/** Header mutation sent to the native gateway (op 0 = set, 1 = add, 2 = remove). @internal */
|
|
52
53
|
export interface HeaderEdit {
|
|
53
54
|
op: number;
|
|
54
55
|
name: string;
|
|
55
56
|
value: string;
|
|
56
57
|
}
|
|
57
|
-
/**
|
|
58
|
-
* it: a null value clears it. @internal */
|
|
58
|
+
/** Encoded Request Context field passed across the native boundary (`null` clears it). @internal */
|
|
59
59
|
export interface NativeField {
|
|
60
60
|
name: string;
|
|
61
61
|
value?: string | null;
|
|
62
62
|
}
|
|
63
|
-
/**
|
|
63
|
+
/** Span attribute passed across the native boundary. @internal */
|
|
64
64
|
export interface NativeAttribute {
|
|
65
65
|
key: string;
|
|
66
66
|
value: AttributeValue;
|
|
67
67
|
integer: boolean;
|
|
68
68
|
}
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
71
|
-
* headers,
|
|
72
|
-
* gateway refuses the same edits.
|
|
70
|
+
* Reports whether a lowercase header name is reserved by Encore (internal
|
|
71
|
+
* `x-encore-*` headers, trace context, HTTP framing, and CORS headers).
|
|
73
72
|
* @internal
|
|
74
73
|
*/
|
|
75
74
|
export declare function isProtected(name: string): boolean;
|
|
76
|
-
/** Header values edited by a
|
|
77
|
-
* now. */
|
|
75
|
+
/** Header values edited by a middleware, keyed by lowercase name. */
|
|
78
76
|
type Overrides = Map<string, string[]>;
|
|
79
|
-
/**
|
|
80
|
-
* are shown. @internal */
|
|
77
|
+
/** Per-middleware, per-request state shared across hooks. @internal */
|
|
81
78
|
export interface Lane {
|
|
82
79
|
state: unknown;
|
|
83
80
|
}
|
|
84
|
-
/**
|
|
85
|
-
* has timed out and the gateway went on without it. @internal */
|
|
81
|
+
/** Tracks whether an active timed hook (`onRequest` or `onResponse`) has expired. @internal */
|
|
86
82
|
export interface HookRun {
|
|
87
83
|
expired: boolean;
|
|
88
84
|
}
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
*
|
|
85
|
+
/**
|
|
86
|
+
* Tracks the currently running timed hook across async continuations so a
|
|
87
|
+
* timed-out hook cannot mutate `Request.state` after the gateway has moved on.
|
|
88
|
+
* @internal
|
|
89
|
+
*/
|
|
92
90
|
export declare const hookRuns: AsyncLocalStorage<HookRun>;
|
|
93
91
|
/**
|
|
94
|
-
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
92
|
+
* Represents an incoming public request passed to a middleware's hooks. The
|
|
93
|
+
* same instance is reused across all hooks of a single middleware for a given
|
|
94
|
+
* request.
|
|
97
95
|
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
*
|
|
96
|
+
* Headers, query parameters, and cookies are read lazily and reflect edits
|
|
97
|
+
* made by earlier middleware as well as this middleware. Internal `x-encore-*`
|
|
98
|
+
* headers are never exposed. Mutating methods are only permitted inside
|
|
99
|
+
* `onRequest` and throw if called elsewhere.
|
|
102
100
|
*/
|
|
103
101
|
export declare class Request {
|
|
104
|
-
/**
|
|
102
|
+
/** Identifier unique among currently in-flight requests. */
|
|
105
103
|
readonly id: number;
|
|
106
104
|
/** @internal */ readonly middleware: string;
|
|
107
105
|
/** @internal */ readonly view: NativeView | undefined;
|
|
@@ -109,98 +107,104 @@ export declare class Request {
|
|
|
109
107
|
/** @internal */ overrides: Overrides | undefined;
|
|
110
108
|
/** @internal */ deciding: boolean;
|
|
111
109
|
/** @internal */ edits: HeaderEdit[];
|
|
112
|
-
/** @internal
|
|
113
|
-
* Middleware's changes: changed in place, as the context its hooks run in
|
|
114
|
-
* holds this record. */
|
|
110
|
+
/** @internal Encoded Request Context fields, mutated in place so active hook contexts see updates immediately. */
|
|
115
111
|
readonly fields: Record<string, string>;
|
|
116
|
-
/** @internal
|
|
112
|
+
/** @internal Field mutations queued for the native gateway. */
|
|
117
113
|
fieldEdits: NativeField[];
|
|
118
114
|
/** @internal */ attributes: NativeAttribute[];
|
|
119
115
|
/** @internal */ skipped: number;
|
|
120
116
|
/** @internal */ hookSignal: AbortSignal;
|
|
121
|
-
/** @internal
|
|
117
|
+
/** @internal Created by Encore. */
|
|
122
118
|
constructor(middleware: string, id: number, view: NativeView | undefined, lane: Lane);
|
|
123
|
-
/**
|
|
119
|
+
/** Uppercase HTTP method (e.g. `"GET"`). */
|
|
124
120
|
get method(): string;
|
|
125
|
-
/**
|
|
121
|
+
/** Value of the client's `Host` header, if present. */
|
|
126
122
|
get host(): string | undefined;
|
|
127
|
-
/**
|
|
128
|
-
* query. */
|
|
123
|
+
/** Raw request path as sent by the client (not percent-decoded, without query string). */
|
|
129
124
|
get path(): string;
|
|
130
|
-
/**
|
|
125
|
+
/** Target service name that the gateway routes this request to. */
|
|
131
126
|
get service(): string;
|
|
132
|
-
/**
|
|
127
|
+
/** Matched route template (e.g. `/users/{id}`). */
|
|
133
128
|
get route(): string;
|
|
134
|
-
/**
|
|
135
|
-
* known. */
|
|
129
|
+
/** Client IP address observed by the gateway, if known. */
|
|
136
130
|
get clientIp(): string | undefined;
|
|
137
131
|
/**
|
|
138
|
-
* Aborts when the hook
|
|
139
|
-
* `onResponse`
|
|
140
|
-
*
|
|
141
|
-
* work stops too. It never aborts in the other hooks.
|
|
132
|
+
* Aborts when the current hook exceeds its timeout (`onRequest` and
|
|
133
|
+
* `onResponse` only). Pass this signal to async operations such as `fetch`
|
|
134
|
+
* so they cancel cleanly if the gateway moves on. Never aborts in other hooks.
|
|
142
135
|
*/
|
|
143
136
|
get signal(): AbortSignal;
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* name.
|
|
137
|
+
/**
|
|
138
|
+
* Returns the raw (non-percent-decoded) value of path parameter `name`, or
|
|
139
|
+
* `undefined` if the matched route has no parameter with that name.
|
|
140
|
+
*/
|
|
147
141
|
pathParam(name: string): string | undefined;
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
142
|
+
/**
|
|
143
|
+
* Returns the first value of request header `name` (case-insensitive), or
|
|
144
|
+
* `undefined` if absent. Reflects edits by earlier middleware and this hook.
|
|
145
|
+
*/
|
|
150
146
|
header(name: string): string | undefined;
|
|
151
|
-
/**
|
|
147
|
+
/** Returns all values of request header `name` (case-insensitive) in order. */
|
|
152
148
|
headerValues(name: string): string[];
|
|
153
|
-
/**
|
|
154
|
-
*
|
|
149
|
+
/**
|
|
150
|
+
* Returns the first percent-decoded value of query parameter `name`, or
|
|
151
|
+
* `undefined` if absent.
|
|
152
|
+
*/
|
|
155
153
|
query(name: string): string | undefined;
|
|
156
|
-
/**
|
|
157
|
-
* order. */
|
|
154
|
+
/** Returns all percent-decoded values of query parameter `name` in order. */
|
|
158
155
|
queryValues(name: string): string[];
|
|
159
|
-
/**
|
|
160
|
-
*
|
|
156
|
+
/**
|
|
157
|
+
* Returns the value of cookie `name` from the current `Cookie` headers, or
|
|
158
|
+
* `undefined` if absent.
|
|
159
|
+
*/
|
|
161
160
|
cookie(name: string): string | undefined;
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* traced.
|
|
161
|
+
/**
|
|
162
|
+
* Span context for this request at the gateway (parent of spans started by
|
|
163
|
+
* hooks), or `undefined` if the request is not traced.
|
|
164
|
+
*/
|
|
165
165
|
get spanContext(): SpanContext | undefined;
|
|
166
166
|
private mustDecide;
|
|
167
167
|
private edit;
|
|
168
168
|
/**
|
|
169
|
-
* Sets
|
|
170
|
-
*
|
|
171
|
-
* Encore
|
|
172
|
-
*
|
|
169
|
+
* Sets request header `name` to `value`, replacing any existing values, for
|
|
170
|
+
* downstream middleware and the target service. Only valid in `onRequest`.
|
|
171
|
+
* Throws if `name` is reserved by Encore (`x-encore-*`, trace context,
|
|
172
|
+
* HTTP framing, or CORS headers).
|
|
173
173
|
*/
|
|
174
174
|
setHeader(name: string, value: string): void;
|
|
175
|
-
/**
|
|
176
|
-
*
|
|
175
|
+
/**
|
|
176
|
+
* Appends `value` to request header `name` without removing existing values.
|
|
177
|
+
* Only valid in `onRequest`; see {@link Request.setHeader}.
|
|
178
|
+
*/
|
|
177
179
|
addHeader(name: string, value: string): void;
|
|
178
|
-
/**
|
|
180
|
+
/**
|
|
181
|
+
* Removes request header `name`. Only valid in `onRequest`; see
|
|
182
|
+
* {@link Request.setHeader}.
|
|
183
|
+
*/
|
|
179
184
|
delHeader(name: string): void;
|
|
180
185
|
/**
|
|
181
|
-
*
|
|
182
|
-
* tenant
|
|
183
|
-
*
|
|
186
|
+
* Attaches attributes to the gateway's request span (for example, a user or
|
|
187
|
+
* tenant ID for trace search — never secrets). Only valid in `onRequest`.
|
|
188
|
+
* Safe integers are recorded as integers; other numbers are recorded as floats.
|
|
184
189
|
*/
|
|
185
190
|
setAttributes(attributes: Record<string, AttributeValue>): void;
|
|
186
|
-
/**
|
|
187
|
-
*
|
|
188
|
-
* `req.skip(Hook.Response | Hook.Complete)
|
|
191
|
+
/**
|
|
192
|
+
* Skips the specified later `hooks` of this middleware for this request
|
|
193
|
+
* (e.g. `req.skip(Hook.Response | Hook.Complete)`). Only valid in `onRequest`.
|
|
194
|
+
*/
|
|
189
195
|
skip(hooks: Hooks): void;
|
|
190
196
|
/**
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
* not JSON reads as not set, as it does to `field.get()`.
|
|
197
|
+
* Returns the current value of Request Context `field` for this request, or
|
|
198
|
+
* `undefined` if unset. Hooks can equivalently call `field.get()`. In
|
|
199
|
+
* `onComplete`, reflects the value as forwarded. Invalid JSON values are
|
|
200
|
+
* treated as unset.
|
|
196
201
|
*/
|
|
197
202
|
get<T>(field: Field<T>): T | undefined;
|
|
198
203
|
/**
|
|
199
|
-
* Sets
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
* `field.get()
|
|
203
|
-
* Middleware that authenticates says who the request is for:
|
|
204
|
+
* Sets Request Context `field` to `value` for this request. Subsequent
|
|
205
|
+
* middleware, the target service, downstream services called with the
|
|
206
|
+
* request's context, and calls made by this hook afterward will read it via
|
|
207
|
+
* `field.get()`.
|
|
204
208
|
*
|
|
205
209
|
* ```ts
|
|
206
210
|
* export const currentUser = new Field<User>('user');
|
|
@@ -216,88 +220,88 @@ export declare class Request {
|
|
|
216
220
|
* }
|
|
217
221
|
* ```
|
|
218
222
|
*
|
|
219
|
-
* Only in `onRequest`.
|
|
220
|
-
*
|
|
223
|
+
* Only valid in `onRequest`. Changes are applied only if `onRequest` lets
|
|
224
|
+
* the request through; they are discarded if the hook fails or rejects.
|
|
221
225
|
*
|
|
222
|
-
* @throws TypeError
|
|
223
|
-
* {@link Field}.
|
|
224
|
-
* @throws RangeError
|
|
225
|
-
* or 1 KiB for
|
|
226
|
-
*
|
|
226
|
+
* @throws TypeError If `value` cannot be serialized to JSON or `field` is
|
|
227
|
+
* not a {@link Field}.
|
|
228
|
+
* @throws RangeError If the encoded value exceeds the per-field limit (4 KiB,
|
|
229
|
+
* or 1 KiB for fields with `pubsub` enabled) or pushes total request fields
|
|
230
|
+
* past 8 KiB.
|
|
227
231
|
*/
|
|
228
232
|
set<T>(field: Field<T>, value: T): void;
|
|
229
|
-
/**
|
|
230
|
-
*
|
|
233
|
+
/**
|
|
234
|
+
* Clears Request Context `field` for this request (including values set by
|
|
235
|
+
* earlier middleware). Only valid in `onRequest`.
|
|
236
|
+
*/
|
|
231
237
|
unset(field: Field<unknown>): void;
|
|
232
238
|
/**
|
|
233
|
-
*
|
|
234
|
-
* user `onRequest`
|
|
235
|
-
*
|
|
239
|
+
* Per-request state private to this middleware, shared across its hooks
|
|
240
|
+
* (for example, saving an authenticated user in `onRequest` for `onComplete`
|
|
241
|
+
* to record). Starts as `undefined` and is dropped when the request finishes.
|
|
236
242
|
*
|
|
237
|
-
*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
* after it timed out may no longer set it: that throws.
|
|
243
|
+
* If `onRequest` or `onResponse` fails or times out, `state` reverts to its
|
|
244
|
+
* reference before the hook ran. Because Encore does not deep-copy `state`,
|
|
245
|
+
* assign a new object (e.g. `req.state = {...req.state, billed: true}`)
|
|
246
|
+
* rather than mutating in place if the hook might fail later. Setting `state`
|
|
247
|
+
* after a hook has timed out throws an error.
|
|
243
248
|
*/
|
|
244
249
|
get state(): unknown;
|
|
245
250
|
set state(value: unknown);
|
|
246
251
|
}
|
|
247
252
|
/**
|
|
248
|
-
*
|
|
249
|
-
*
|
|
250
|
-
* Middleware after this one left them, and with this one's edits.
|
|
253
|
+
* Represents the HTTP response passed to `onResponse`. Headers are read lazily
|
|
254
|
+
* and reflect edits made by downstream middleware as well as this middleware.
|
|
251
255
|
*/
|
|
252
256
|
export declare class Response {
|
|
253
|
-
/** The HTTP status. */
|
|
257
|
+
/** The HTTP status code. */
|
|
254
258
|
readonly status: number;
|
|
255
259
|
/** @internal */ readonly middleware: string;
|
|
256
260
|
/** @internal */ readonly headers: NativeHeaders | undefined;
|
|
257
261
|
/** @internal */ overrides: Overrides | undefined;
|
|
258
262
|
/** @internal */ editing: boolean;
|
|
259
263
|
/** @internal */ edits: HeaderEdit[];
|
|
260
|
-
/** @internal
|
|
264
|
+
/** @internal Created by Encore. */
|
|
261
265
|
constructor(middleware: string, status: number, headers: NativeHeaders | undefined);
|
|
262
|
-
/**
|
|
266
|
+
/** Returns the first value of response header `name` (case-insensitive), or `undefined` if absent. */
|
|
263
267
|
header(name: string): string | undefined;
|
|
264
|
-
/**
|
|
268
|
+
/** Returns all values of response header `name` (case-insensitive) in order. */
|
|
265
269
|
headerValues(name: string): string[];
|
|
266
270
|
private edit;
|
|
267
|
-
/**
|
|
268
|
-
*
|
|
269
|
-
*
|
|
271
|
+
/**
|
|
272
|
+
* Sets response header `name` to `value`, replacing any existing values,
|
|
273
|
+
* before the response is sent to the client. Rejects the same reserved
|
|
274
|
+
* headers as {@link Request.setHeader}.
|
|
275
|
+
*/
|
|
270
276
|
setHeader(name: string, value: string): void;
|
|
271
|
-
/**
|
|
277
|
+
/** Appends `value` to response header `name`. */
|
|
272
278
|
addHeader(name: string, value: string): void;
|
|
273
|
-
/** Removes
|
|
279
|
+
/** Removes response header `name`. */
|
|
274
280
|
delHeader(name: string): void;
|
|
275
281
|
}
|
|
276
|
-
/**
|
|
282
|
+
/** Summary of a completed request passed to `onComplete`. */
|
|
277
283
|
export interface Completed {
|
|
278
|
-
/** The request
|
|
279
|
-
* its earlier hooks kept. */
|
|
284
|
+
/** The request with its forwarded headers and the `state` stored by earlier hooks. */
|
|
280
285
|
readonly request: Request;
|
|
281
|
-
/**
|
|
282
|
-
* answered, as when it disconnected first. */
|
|
286
|
+
/** HTTP status code sent to the client, or `undefined` if no response was sent (e.g. client disconnected). */
|
|
283
287
|
readonly status: number | undefined;
|
|
284
|
-
/**
|
|
285
|
-
*
|
|
286
|
-
*
|
|
288
|
+
/**
|
|
289
|
+
* Name of the middleware that rejected the request, `"gateway"` if the
|
|
290
|
+
* gateway rejected it (e.g. unexposed route), or `undefined` if the service
|
|
291
|
+
* handled it.
|
|
292
|
+
*/
|
|
287
293
|
readonly rejectedBy: string | undefined;
|
|
288
|
-
/**
|
|
289
|
-
* that could not be reached. */
|
|
294
|
+
/** Error message if the request failed due to a hook error or unreachable service. */
|
|
290
295
|
readonly error: string | undefined;
|
|
291
|
-
/**
|
|
296
|
+
/** Timestamp when the gateway received the request. */
|
|
292
297
|
readonly received: Date;
|
|
293
|
-
/**
|
|
298
|
+
/** Total time spent by the gateway handling the request, in milliseconds. */
|
|
294
299
|
readonly durationMs: number;
|
|
295
|
-
/**
|
|
296
|
-
* forwarded. */
|
|
300
|
+
/** Time spent waiting for the upstream service, in milliseconds (if forwarded). */
|
|
297
301
|
readonly upstreamDurationMs: number | undefined;
|
|
298
|
-
/**
|
|
302
|
+
/** Size of the request body in bytes. */
|
|
299
303
|
readonly requestBodySize: number;
|
|
300
|
-
/**
|
|
304
|
+
/** Size of the response body in bytes. */
|
|
301
305
|
readonly responseBodySize: number;
|
|
302
306
|
}
|
|
303
307
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../gateway/request.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAIpD,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACpC,
|
|
1
|
+
{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["../../gateway/request.ts"],"names":[],"mappings":";;AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,oBAAoB,CAAC;AAIpD,OAAO,EAAC,KAAK,EAAC,MAAM,eAAe,CAAC;AAEpC;;;;GAIG;AACH,MAAM,WAAW,UAAU;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,IAAI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