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: docs/api/MockPool.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ Returns: `MockInterceptor` corresponding to the input options.
54
54
### Parameter: `MockPoolInterceptOptions`
55
55
56
56
***path**`string | RegExp | (path: string) => boolean` - a matcher for the HTTP request path.
57
-
***method**`string | RegExp | (method: string) => boolean` - a matcher for the HTTP request method.
57
+
***method**`string | RegExp | (method: string) => boolean` - (optional) - a matcher for the HTTP request method. Defaults to `GET`.
58
58
***body**`string | RegExp | (body: string) => boolean` - (optional) - a matcher for the HTTP request body.
59
59
***headers**`Record<string, string | RegExp | (body: string) => boolean`> - (optional) - a matcher for the HTTP request headers. To be intercepted, a request must match all defined headers. Extra headers not defined here may (or may not) be included in the request and do not affect the interception in any way.
60
60
***query**`Record<string, any> | null` - (optional) - a matcher for the HTTP request query string params.
0 commit comments