Last change
on this file since 76712b2 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
666 bytes
|
Rev | Line | |
---|
[6a3a178] | 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 | private tlsConnectionOptions;
|
---|
| 14 | constructor(_opts: string | SocksProxyAgentOptions);
|
---|
| 15 | /**
|
---|
| 16 | * Initiates a SOCKS connection to the specified SOCKS proxy server,
|
---|
| 17 | * which in turn connects to the specified remote host and port.
|
---|
| 18 | *
|
---|
| 19 | * @api protected
|
---|
| 20 | */
|
---|
| 21 | callback(req: ClientRequest, opts: RequestOptions): Promise<net.Socket>;
|
---|
| 22 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.