Merge pull request #19120 from lookfirst/request-tunnel-option

[request] Optional tunnel boolean in request options
This commit is contained in:
Bowden Kelly
2017-08-23 17:05:17 -07:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
// Type definitions for request 2.0
// Project: https://github.com/request/request
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, bonnici <https://github.com/bonnici>, Bart van der Schoor <https://github.com/Bartvds>, Joe Skeen <https://github.com/joeskeen>, Christopher Currens <https://github.com/ccurrens>
// Definitions by: Carlos Ballesteros Velasco <https://github.com/soywiz>, bonnici <https://github.com/bonnici>, Bart van der Schoor <https://github.com/Bartvds>, Joe Skeen <https://github.com/joeskeen>, Christopher Currens <https://github.com/ccurrens>, Jon Stevens <https://github.com/lookfirst>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// Imported from: https://github.com/soywiz/typescript-node-definitions/d.ts
@@ -142,6 +142,7 @@ declare namespace request {
timeout?: number;
localAddress?: string;
proxy?: any;
tunnel?: boolean;
strictSSL?: boolean;
rejectUnauthorized?: boolean;
time?: boolean;

View File

@@ -120,6 +120,7 @@ var options: request.Options = {
pool: value,
timeout: num,
proxy: value,
tunnel: bool,
strictSSL: bool,
rejectUnauthorized: false
};