Display body

This commit is contained in:
Fang-Pen Lin
2025-12-05 12:07:47 -08:00
parent 7a9374c72b
commit 4475457d4f
2 changed files with 3 additions and 1 deletions
@@ -51,6 +51,7 @@ export type THttpRequestEvent = {
headers: Record<string, string[]>; headers: Record<string, string[]>;
method: string; method: string;
url: string; url: string;
body?: string;
}; };
export type THttpResponseEvent = { export type THttpResponseEvent = {
@@ -59,6 +60,7 @@ export type THttpResponseEvent = {
eventType: "response"; eventType: "response";
headers: Record<string, string[]>; headers: Record<string, string[]>;
status: string; status: string;
body?: string;
}; };
export type THttpEvent = THttpRequestEvent | THttpResponseEvent; export type THttpEvent = THttpRequestEvent | THttpResponseEvent;
@@ -222,7 +222,7 @@ export const HttpEventView = ({ events }: Props) => {
</div> </div>
)} )}
{isRequest && event.body && ( {event.body && (
<div className="mt-2 pt-2 border-t border-mineshaft-700"> <div className="mt-2 pt-2 border-t border-mineshaft-700">
<button <button
type="button" type="button"