From 439a64a164a5ae775fe9abb27c2b9d5178ffe888 Mon Sep 17 00:00:00 2001 From: Florian Oellerich Date: Thu, 1 Feb 2018 15:02:44 +0100 Subject: [PATCH] [http-proxy] update options Update options to version 1.16.2 of node-http-proxy --- types/http-proxy/index.d.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/types/http-proxy/index.d.ts b/types/http-proxy/index.d.ts index 811789af33..e9ef9a572d 100644 --- a/types/http-proxy/index.d.ts +++ b/types/http-proxy/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for node-http-proxy 1.12 +// Type definitions for node-http-proxy 1.16 // Project: https://github.com/nodejitsu/node-http-proxy -// Definitions by: Maxime LUCE +// Definitions by: Maxime LUCE , Florian Oellerich // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -189,6 +189,8 @@ declare namespace Server { localAddress?: boolean; /** Changes the origin of the host header to the target URL. */ changeOrigin?: boolean; + /** specify whether you want to keep letter case of response header key */ + preserveHeaderKeyCase?: boolean; /** Basic authentication i.e. 'user:password' to compute an Authorization header. */ auth?: string; /** Rewrites the location hostname on (301 / 302 / 307 / 308) redirects, Default: null. */ @@ -197,6 +199,10 @@ declare namespace Server { autoRewrite?: boolean; /** Rewrites the location protocol on (301 / 302 / 307 / 308) redirects to 'http' or 'https'.Default: null. */ protocolRewrite?: string; + /** rewrites domain of set-cookie headers. */ + cookieDomainRewrite?: false | string | {[oldDomain: string]: string}; + /** object with extra headers to be added to target requests. */ + headers?: {[header: string]: string}; /** Timeout (in milliseconds) when proxy receives no response from target. Default: 120000 (2 minutes) */ proxyTimeout?: number; }