mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-12 21:10:23 +00:00
Expose properties of HttpProxyAgent (#29745)
* Expose properties of HttpProxyAgent * Use 4 spaces over tabs * Remove options & timeout properties
This commit is contained in:
committed by
Sheetal Nandi
parent
8a34268189
commit
83b0f8edf0
@@ -5,6 +5,9 @@ new Agent('url');
|
||||
new Agent({});
|
||||
new Agent({ host: 'url' });
|
||||
|
||||
new Agent({}).proxy;
|
||||
new Agent({}).secureProxy;
|
||||
|
||||
// $ExpectError
|
||||
new Agent();
|
||||
|
||||
|
||||
Vendored
+4
@@ -1,6 +1,7 @@
|
||||
// Type definitions for http-proxy-agent 2.0
|
||||
// Project: https://github.com/TooTallNate/node-http-proxy-agent
|
||||
// Definitions by: mrmlnc <https://github.com/mrmlnc>
|
||||
// steprescott <https://github.com/steprescott>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
@@ -10,6 +11,9 @@ import { Url } from 'url';
|
||||
|
||||
declare class HttpProxyAgent extends Agent {
|
||||
constructor(options: string | Url);
|
||||
|
||||
proxy: Url;
|
||||
secureProxy: boolean;
|
||||
}
|
||||
|
||||
export = HttpProxyAgent;
|
||||
|
||||
Reference in New Issue
Block a user