bring proxy stuff together

add http.proxyStrictSSL option

fixes #155
This commit is contained in:
Joao Moreno
2015-12-01 18:20:57 +01:00
parent 9b6bff1573
commit eaa5bcfe19
6 changed files with 102 additions and 54 deletions
+11
View File
@@ -5,8 +5,19 @@
declare module 'https-proxy-agent' {
import * as tls from 'tls';
interface IHttpsProxyAgentOptions extends tls.ConnectionOptions {
host: string;
port: number;
secureProxy?: boolean;
secureEndpoint?: boolean;
}
class HttpsProxyAgent {
constructor(proxy: string);
constructor(opts: IHttpsProxyAgentOptions);
}
export = HttpsProxyAgent;
}