diff --git a/src/extension.ts b/src/extension.ts index 325bb37..55c0f0c 100644 --- a/src/extension.ts +++ b/src/extension.ts @@ -133,6 +133,7 @@ export function activate(context: vscode.ExtensionContext) { data: resp.data, status: resp.status, statusText: resp.statusText, + headers: resp.headers, }) ) .catch((err) => { diff --git a/webview/components/RequestOptionsWindow/styles.css b/webview/components/RequestOptionsWindow/styles.css index 13c6725..f3770f6 100644 --- a/webview/components/RequestOptionsWindow/styles.css +++ b/webview/components/RequestOptionsWindow/styles.css @@ -1,4 +1,5 @@ .request-options-window-wrapper { flex: 1; padding: 5px 20px 10px 20px; + overflow: scroll; } diff --git a/webview/components/Response/index.tsx b/webview/components/Response/index.tsx new file mode 100644 index 0000000..b0ebc33 --- /dev/null +++ b/webview/components/Response/index.tsx @@ -0,0 +1,50 @@ +import * as React from "react"; +import { ResponseTab } from "../../features/response/ResponseTab"; +import { ResponseWindow } from "../../features/response/ResponseWindow"; +import { ReactComponent as PackageIcon } from "../../icons/package.svg"; +import "./styles.css"; +import { useAppSelector } from "../../redux/hooks"; +import { selectResponse } from "../../features/response/responseSlice"; +import { supportedLangs } from "../../constants/supported-langs"; + +export const Response = () => { + const response = useAppSelector(selectResponse); + const [selected, setSelected] = React.useState("body"); + const [language, setLanguage] = React.useState(supportedLangs[0].value); + + if (response.loading) { + return ( +
+ {!fixed && | } | KEY | VALUE | -DESCRIPTION | -+ {!fixed && | DESCRIPTION | } + {!fixed &&} |
---|