mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 11:27:32 +00:00
Display body
This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user