Custom http agent support (#810)

This commit is contained in:
Tomas Della Vedova
2019-04-10 11:13:22 +02:00
committed by delvedor
parent 6cc2b21ce2
commit ef3126b361
5 changed files with 82 additions and 16 deletions

4
lib/Connection.d.ts vendored
View File

@ -24,12 +24,14 @@ import { inspect, InspectOptions } from 'util';
import * as http from 'http';
import { SecureContextOptions } from 'tls';
export declare type agentFn = () => any;
interface ConnectionOptions {
url: URL;
ssl?: SecureContextOptions;
id?: string;
headers?: any;
agent?: AgentOptions;
agent?: AgentOptions | agentFn;
status?: string;
roles?: any;
}