Custom http agent support (#810)
This commit is contained in:
committed by
delvedor
parent
11c7475566
commit
48233503f7
4
index.d.ts
vendored
4
index.d.ts
vendored
@ -29,7 +29,7 @@ import Transport, {
|
||||
nodeFilterFn,
|
||||
nodeSelectorFn
|
||||
} from './lib/Transport';
|
||||
import Connection, { AgentOptions } from './lib/Connection';
|
||||
import Connection, { AgentOptions, agentFn } from './lib/Connection';
|
||||
import ConnectionPool, { ResurrectEvent } from './lib/ConnectionPool';
|
||||
import Serializer from './lib/Serializer';
|
||||
import * as RequestParams from './api/requestParams';
|
||||
@ -82,7 +82,7 @@ interface ClientOptions {
|
||||
suggestCompression?: boolean;
|
||||
compression?: 'gzip';
|
||||
ssl?: SecureContextOptions;
|
||||
agent?: AgentOptions;
|
||||
agent?: AgentOptions | agentFn;
|
||||
nodeFilter?: nodeFilterFn;
|
||||
nodeSelector?: nodeSelectorFn | string;
|
||||
headers?: anyObject;
|
||||
|
||||
Reference in New Issue
Block a user