From 48256bad091ea6dfaabcd7803ab70da394b46631 Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 11 Feb 2015 16:17:56 +1300 Subject: [PATCH] Add overrides for request header matching --- nock/nock.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nock/nock.d.ts b/nock/nock.d.ts index bcf4560ce..db6d5df93 100644 --- a/nock/nock.d.ts +++ b/nock/nock.d.ts @@ -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;