Sha256: 4e6072520f56b814aaa4fc3614a28ace9362c19d381d2b64c8118c5ecd548cf2

Contents?: true

Size: 1.18 KB

Versions: 25

Compression:

Stored size: 1.18 KB

Contents

/// <reference types="node" />
import { SocksProxy } from 'socks';
import { Agent, ClientRequest, RequestOptions } from 'agent-base';
import { AgentOptions } from 'agent-base';
import { Url } from 'url';
import net from 'net';
import tls from 'tls';
interface BaseSocksProxyAgentOptions {
    host?: string | null;
    port?: string | number | null;
    username?: string | null;
    tls?: tls.ConnectionOptions | null;
}
interface SocksProxyAgentOptionsExtra {
    timeout?: number;
}
export interface SocksProxyAgentOptions extends AgentOptions, BaseSocksProxyAgentOptions, Partial<Omit<Url & SocksProxy, keyof BaseSocksProxyAgentOptions>> {
}
export declare class SocksProxyAgent extends Agent {
    private readonly shouldLookup;
    private readonly proxy;
    private readonly tlsConnectionOptions;
    timeout: number | null;
    constructor(input: string | SocksProxyAgentOptions, options?: SocksProxyAgentOptionsExtra);
    /**
     * Initiates a SOCKS connection to the specified SOCKS proxy server,
     * which in turn connects to the specified remote host and port.
     *
     * @api protected
     */
    callback(req: ClientRequest, opts: RequestOptions): Promise<net.Socket>;
}
export {};

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
immosquare-cleaner-0.1.52 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.51 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.50 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.49 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.48 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.47 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.46 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.45 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.44 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.43 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.42 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.41 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.40 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.39 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.38 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.32 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.31 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.30 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.29 node_modules/socks-proxy-agent/dist/index.d.ts
immosquare-cleaner-0.1.28 node_modules/socks-proxy-agent/dist/index.d.ts