Skip to content

Commit

Permalink
ref: Make ExpressRequest not extend http.IncomingMessage anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilogorek committed Jan 28, 2021
1 parent 21196ac commit 0ee1eca
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions packages/node/src/handlers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,13 @@ import { flush } from './sdk';

const DEFAULT_SHUTDOWN_TIMEOUT = 2000;

export interface ExpressRequest extends http.IncomingMessage {
[key: string]: any;
export interface ExpressRequest {
baseUrl?: string;
connection?: {
remoteAddress?: string;
};
ip?: string;
method?: string;
originalUrl?: string;
route?: {
path: string;
Expand All @@ -33,6 +36,10 @@ export interface ExpressRequest extends http.IncomingMessage {
},
];
};
query?: {
[key: string]: string | string[];
};
url?: string;
user?: {
[key: string]: any;
};
Expand Down

0 comments on commit 0ee1eca

Please sign in to comment.