Add overrides for request header matching

This commit is contained in:
Wim
2015-02-11 16:17:56 +13:00
parent 85a4f89e84
commit 48256bad09
+3
View File
@@ -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;