From f71f27a923d6602f1fda485ee183523f10b2d0ab Mon Sep 17 00:00:00 2001 From: Shreyansh Shah Date: Fri, 24 Feb 2023 00:20:19 +0530 Subject: [PATCH] feat: remove/replace headers while recording tc Signed-off-by: Shreyansh Shah --- src/keploy.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/keploy.ts b/src/keploy.ts index 1de2cca..d69c201 100644 --- a/src/keploy.ts +++ b/src/keploy.ts @@ -29,6 +29,8 @@ export const V1_BETA2 = "api.keploy.io/v1beta2", type AppConfigFilter = { urlRegex?: string; + remove?: string[]; + replace?: { [key: string]: string }; }; type AppConfig = { @@ -163,6 +165,8 @@ export default class Keploy { } capture(req: TestCaseReq) { + req.Remove=this.appConfig.filter.remove + req.Replace=this.appConfig.filter.replace return this.put(req); }