Skip to content
This repository was archived by the owner on Apr 23, 2025. It is now read-only.

Commit f78f5e2

Browse files
committed
feat(webhooks): display full client socket address, responder request path and query string
1 parent 7727f82 commit f78f5e2

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

src/pages/workspace/utils/webhooks/responder_request.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export interface ResponderRequest {
33
clientAddress?: string;
44
method: string;
55
headers?: Array<[string, number[]]>;
6+
url: string;
67
body?: number[];
78
createdAt: number;
89
}

src/pages/workspace/utils/webhooks/responder_requests_table.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,9 @@ export function ResponderRequestsTable({ responder }: ResponderRequestsTableProp
9191
isExpandable: false,
9292
isResizable: false,
9393
},
94-
{ id: 'address', display: 'Address', displayAsText: 'Address', isExpandable: false },
94+
{ id: 'address', display: 'Client address', displayAsText: 'Client address', isExpandable: false },
9595
{ id: 'method', display: 'Method', displayAsText: 'Method', initialWidth: 80, isExpandable: false },
96+
{ id: 'url', display: 'URL', displayAsText: 'URL', isSortable: true },
9697
{ id: 'headers', display: 'Headers', displayAsText: 'Body' },
9798
{ id: 'body', display: 'Body', displayAsText: 'Body' },
9899
];
@@ -144,6 +145,10 @@ export function ResponderRequestsTable({ responder }: ResponderRequestsTableProp
144145
return request.method;
145146
}
146147

148+
if (columnId === 'url') {
149+
return request.url;
150+
}
151+
147152
if (columnId === 'headers') {
148153
if (!request.headers || request.headers.length === 0) {
149154
return '-';

0 commit comments

Comments
 (0)