mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 20:02:05 +08:00
Merge pull request #23346 from Raigen/feature/http-proxy-1.16
[http-proxy] update options to version 1.16.2 of node-http-proxy
This commit is contained in:
10
types/http-proxy/index.d.ts
vendored
10
types/http-proxy/index.d.ts
vendored
@@ -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 <https://github.com/SomaticIT>
|
||||
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>, Florian Oellerich <https://github.com/Raigen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user