UNPKG

@teambit/network.agent

Version:
15 lines (14 loc) 555 B
import HttpAgent from 'agentkeepalive'; export interface AgentOptions { ca?: string; cert?: string; httpProxy?: string; httpsProxy?: string; key?: string; localAddress?: string; maxSockets?: number; noProxy?: boolean | string; strictSSL?: boolean; timeout?: number; } export declare function getAgent(uri: string, opts: AgentOptions): import("http-proxy-agent/dist/agent").default | import("https-proxy-agent/dist/agent").default | import("socks-proxy-agent/dist/agent").default | HttpAgent | HttpAgent.HttpsAgent;