We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21196ac commit 8c20fd2Copy full SHA for 8c20fd2
packages/node/src/handlers.ts
@@ -20,10 +20,13 @@ import { flush } from './sdk';
20
21
const DEFAULT_SHUTDOWN_TIMEOUT = 2000;
22
23
-export interface ExpressRequest extends http.IncomingMessage {
24
- [key: string]: any;
+export interface ExpressRequest {
25
baseUrl?: string;
+ connection?: {
26
+ remoteAddress?: string;
27
+ };
28
ip?: string;
29
+ method?: string;
30
originalUrl?: string;
31
route?: {
32
path: string;
@@ -33,6 +36,11 @@ export interface ExpressRequest extends http.IncomingMessage {
33
36
},
34
37
];
35
38
};
39
+ query?: {
40
+ // It can be: undefined | string | string[] | ParsedQs | ParsedQs[] (from `qs` package), but we dont want to pull it.
41
+ [key: string]: unknown;
42
43
+ url?: string;
44
user?: {
45
[key: string]: any;
46
0 commit comments