/ cloudformation-templates / node_modules / aws-cdk / node_modules / socks-proxy-agent / dist / agent.d.ts
agent.d.ts
1 /// <reference types="node" /> 2 import net from 'net'; 3 import { Agent, ClientRequest, RequestOptions } from 'agent-base'; 4 import { SocksProxyAgentOptions } from '.'; 5 /** 6 * The `SocksProxyAgent`. 7 * 8 * @api public 9 */ 10 export default class SocksProxyAgent extends Agent { 11 private lookup; 12 private proxy; 13 constructor(_opts: string | SocksProxyAgentOptions); 14 /** 15 * Initiates a SOCKS connection to the specified SOCKS proxy server, 16 * which in turn connects to the specified remote host and port. 17 * 18 * @api protected 19 */ 20 callback(req: ClientRequest, opts: RequestOptions): Promise<net.Socket>; 21 }