mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 00:07:07 +00:00
Upgrade types for http-proxy-middleware to v0.19 (#30641)
This commit is contained in:
committed by
Pranav Senthilnathan
parent
791f8f9f5d
commit
7f19306894
+8
-1
@@ -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 <https://github.com/zebMcCorkle>
|
||||
// BendingBender <https://github.com/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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user