-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathrequests_response.ts
67 lines (64 loc) · 1.3 KB
/
requests_response.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
export interface RequestsResponse {
requests: Request[];
meta: {
total: number;
};
requestJournalDisabled: boolean;
}
interface Request {
id: string;
request: RequestData;
responseDefinition: {
status: number;
statusMessage: string;
jsonBody?: { [key: string]: unknown };
};
response: {
status: number;
headers: { [key: string]: string };
bodyAsBase64: string;
body: string;
};
wasMatched: boolean;
timing: Timing;
subEvents: unknown[];
stubMapping: {
id: string;
request: {
urlPath: string;
method: string;
};
response: {
status: number;
statusMessage: string;
jsonBody?: { [key: string]: unknown };
};
uuid: string;
};
}
interface RequestData {
url: string;
absoluteURL: string;
method: string;
clientIP: string;
headers: { [key: string]: string };
cookies: { [key: string]: string };
browserProxyRequest: boolean;
loggedDate: number;
bodyAsBase64: string;
body: string;
protocol: string;
scheme: string;
host: string;
port: number;
loggedDateString: string;
queryParams: { [key: string]: string };
formParams: { [key: string]: string };
}
interface Timing {
addedDelay: number;
processTime: number;
responseSendTime: number;
serveTime: number;
totalTime: number;
}