Skip to content

Commit f71f27a

Browse files
feat: remove/replace headers while recording tc
Signed-off-by: Shreyansh Shah <shreyansh_shah@yahoo.com>
1 parent 88691f5 commit f71f27a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/keploy.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ export const V1_BETA2 = "api.keploy.io/v1beta2",
2929

3030
type AppConfigFilter = {
3131
urlRegex?: string;
32+
remove?: string[];
33+
replace?: { [key: string]: string };
3234
};
3335

3436
type AppConfig = {
@@ -163,6 +165,8 @@ export default class Keploy {
163165
}
164166

165167
capture(req: TestCaseReq) {
168+
req.Remove=this.appConfig.filter.remove
169+
req.Replace=this.appConfig.filter.replace
166170
return this.put(req);
167171
}
168172

0 commit comments

Comments
 (0)