diff --git a/types/http-proxy-middleware/index.d.ts b/types/http-proxy-middleware/index.d.ts index 5db24429c9..b48214b8f6 100644 --- a/types/http-proxy-middleware/index.d.ts +++ b/types/http-proxy-middleware/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for http-proxy-middleware 0.17 +// Type definitions for http-proxy-middleware 0.19 // Project: https://github.com/chimurai/http-proxy-middleware // Definitions by: Zebulon McCorkle // BendingBender @@ -12,6 +12,7 @@ import * as net from "net"; import * as tls from "tls"; import * as connect from "connect"; import * as httpProxy from "http-proxy"; +import { Readable } from 'stream'; declare function proxy(config: proxy.Config): proxy.Proxy; declare function proxy(contextOrUri: string | string[] | proxy.Filter, config: proxy.Config): proxy.Proxy; @@ -52,13 +53,19 @@ declare namespace proxy { ignorePath?: boolean; localAddress?: string; changeOrigin?: boolean; + preserveHeaderKeyCase?: boolean; auth?: string; hostRewrite?: string; autoRewrite?: boolean; protocolRewrite?: string; cookieDomainRewrite?: false | string | { [domain: string]: string }; + cookiePathRewrite?: false | string | { [path: string]: string }; headers?: { [header: string]: string }; proxyTimeout?: number; + timeout?: number; + followRedirects?: boolean; + selfHandleResponse?: boolean; + buffer?: Readable; /** * @deprecated */