mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Updates ServerOptions interface
Bumps version Adds timeout and cookiePathRewite to ServerOptions interface reorders ServerOptions interface to reflect order in http-proxy readme
This commit is contained in:
parent
328c85b59a
commit
46c8b18ad6
11
types/http-proxy/index.d.ts
vendored
11
types/http-proxy/index.d.ts
vendored
@ -1,8 +1,9 @@
|
||||
// Type definitions for node-http-proxy 1.16
|
||||
// Type definitions for node-http-proxy 1.17
|
||||
// Project: https://github.com/nodejitsu/node-http-proxy
|
||||
// Definitions by: Maxime LUCE <https://github.com/SomaticIT>
|
||||
// Florian Oellerich <https://github.com/Raigen>
|
||||
// Daniel Schmidt <https://github.com/DanielMSchmidt>
|
||||
// Jordan Abreu <https://github.com/jabreu610>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
@ -165,8 +166,6 @@ declare class Server extends events.EventEmitter {
|
||||
|
||||
declare namespace Server {
|
||||
interface ServerOptions {
|
||||
/** Buffer */
|
||||
buffer?: stream.Stream;
|
||||
/** URL string to be parsed with the url module. */
|
||||
target?: ProxyTargetUrl;
|
||||
/** URL string to be parsed with the url module. */
|
||||
@ -203,14 +202,20 @@ declare namespace Server {
|
||||
protocolRewrite?: string;
|
||||
/** rewrites domain of set-cookie headers. */
|
||||
cookieDomainRewrite?: false | string | {[oldDomain: string]: string};
|
||||
/** rewrites path of set-cookie headers. Default: false */
|
||||
cookiePathRewrite?: false | string | {[oldPath: 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;
|
||||
/** Timeout (in milliseconds) for incoming requests */
|
||||
timeout?: number;
|
||||
/** Specify whether you want to follow redirects. Default: false */
|
||||
followRedirects?: boolean;
|
||||
/** If set to true, none of the webOutgoing passes are called and it's your responsibility to appropriately return the response by listening and acting on the proxyRes event */
|
||||
selfHandleResponse?: boolean;
|
||||
/** Buffer */
|
||||
buffer?: stream.Stream;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user