mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-07 11:14:00 +08:00
Add overrides for request header matching
This commit is contained in:
1 parent
85a4f89e84
commit
48256bad09
1 file changed
+3
Vendored
+3
@@ -55,7 +55,10 @@ declare module "nock" {
|
||||
replyWithFile(responseCode: number, fileName: string): Scope;
|
||||
|
||||
defaultReplyHeaders(headers: Object): Scope;
|
||||
|
||||
matchHeader(name: string, value: string): Scope;
|
||||
matchHeader(name: string, regex: RegExp): Scope;
|
||||
matchHeader(name: string, fn: (value: string) => bool): Scope;
|
||||
|
||||
filteringPath(regex: RegExp, replace: string): Scope;
|
||||
filteringPath(fn: (path: string) => string): Scope;
|
||||
|
||||
Reference in new issue
Block a user