feat: override content-type (#2191)

Co-authored-by: Liyas Thomas <liyascthomas@gmail.com>
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
This commit is contained in:
Anwarul Islam
2022-03-29 10:23:55 +06:00
committed by GitHub
parent 9f78a4c7e8
commit 414469e5e9
6 changed files with 115 additions and 35 deletions

View File

@@ -11,7 +11,7 @@
<HttpParameters />
</SmartTab>
<SmartTab :id="'bodyParams'" :label="`${$t('tab.body')}`">
<HttpBody />
<HttpBody @change-tab="changeTab" />
</SmartTab>
<SmartTab
:id="'headers'"
@@ -53,10 +53,18 @@ import {
useTestScript,
} from "~/newstore/RESTSession"
type RequestOptionTabs = "params" | "bodyParams" | "headers" | "authorization"
export type RequestOptionTabs =
| "params"
| "bodyParams"
| "headers"
| "authorization"
const selectedRealtimeTab = ref<RequestOptionTabs>("params")
const changeTab = (e: RequestOptionTabs) => {
selectedRealtimeTab.value = e
}
const newActiveParamsCount$ = useReadonlyStream(
restActiveParamsCount$.pipe(
map((e) => {