1 |
|
2 | export interface Request {
|
3 | url?: string;
|
4 | method?: string;
|
5 | data?: any;
|
6 | query_string?: QueryParams;
|
7 | cookies?: {
|
8 | [key: string]: string;
|
9 | };
|
10 | env?: {
|
11 | [key: string]: string;
|
12 | };
|
13 | headers?: {
|
14 | [key: string]: string;
|
15 | };
|
16 | }
|
17 | export type QueryParams = string | {
|
18 | [key: string]: string;
|
19 | } | Array<[string, string]>;
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 | export type SanitizedRequestData = {
|
26 | url: string;
|
27 | 'http.method': string;
|
28 | 'http.fragment'?: string;
|
29 | 'http.query'?: string;
|
30 | };
|
31 |
|
\ | No newline at end of file |