You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: versioned_docs/version-3.0.0/running-keploy/configuration-file.md
+10-3Lines changed: 10 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,13 @@ The `record` section in the Keploy-config file allows you to define parameters f
104
104
105
105
-**`delay`**: Delay in seconds before recording each request. Default is 5 seconds.
106
106
107
-
-**`filters`**: API calls to the application to avoid recording.
107
+
-**`filters`**: API calls to the application to avoid recording. You can also control how these conditions are matched using matchType.
108
+
109
+
-**`matchType (optional)`**: Determines how urlMethods and headers are evaluated.
110
+
111
+
-**`"AND"`**: Both must match.
112
+
113
+
-**`"OR"`**: Either can match.
108
114
109
115
Example:
110
116
@@ -113,11 +119,12 @@ The `record` section in the Keploy-config file allows you to define parameters f
113
119
filters:
114
120
- path: "/user/app"
115
121
urlMethods: ["GET"]
116
-
headers: {"^asdf*": "^test"}
122
+
headers: {"^x-client-id": "^abc.*"}
117
123
host: "dc.services.visualstudio.com"
124
+
matchType: "AND"
118
125
```
119
126
120
-
This will avoid recording the API calls to the path `/user/app` with the method `GET`, headers starting with `asdf` and host `dc.services.visualstudio.com`.
127
+
This will avoid recording the API calls to the path `/user/app` only when the method is `GET`, headers starting with `abc`.
0 commit comments