Custom http agent support (#810)
This commit is contained in:
committed by
delvedor
parent
6cc2b21ce2
commit
ef3126b361
4
lib/Connection.d.ts
vendored
4
lib/Connection.d.ts
vendored
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user