Skip to content

Commit

Permalink
gh-44 remove/replace headers while recording tc
Browse files Browse the repository at this point in the history
Signed-off-by: Shreyansh Shah <[email protected]>
  • Loading branch information
shreyanshshah27 committed Feb 23, 2023
1 parent 88691f5 commit b939e50
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/keploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ export const V1_BETA2 = "api.keploy.io/v1beta2",

type AppConfigFilter = {
urlRegex?: string;
remove?: string[];
replace?: { [key: string]: string };
};

type AppConfig = {
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit b939e50

Please sign in to comment.