Server IP : 85.214.239.14 / Your IP : 18.191.154.204 Web Server : Apache/2.4.62 (Debian) System : Linux h2886529.stratoserver.net 4.9.0 #1 SMP Tue Jan 9 19:45:01 MSK 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.18 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : OFF Directory : /proc/3/task/3/root/proc/2/cwd/lib/node_modules/pm2/node_modules/proxy-agent/dist/ |
Upload File : |
/// <reference types="node" /> import * as http from 'http'; import LRUCache from 'lru-cache'; import { Agent, AgentConnectOpts } from 'agent-base'; import { PacProxyAgentOptions } from 'pac-proxy-agent'; import { HttpProxyAgentOptions } from 'http-proxy-agent'; import { HttpsProxyAgentOptions } from 'https-proxy-agent'; import { SocksProxyAgentOptions } from 'socks-proxy-agent'; declare const PROTOCOLS: readonly ["http", "https", "socks", "socks4", "socks4a", "socks5", "socks5h", ...("pac+http" | "pac+https" | "pac+data" | "pac+file" | "pac+ftp")[]]; type ValidProtocol = (typeof PROTOCOLS)[number]; type AgentConstructor = new (...args: never[]) => Agent; type GetProxyForUrlCallback = (url: string) => string; /** * Supported proxy types. */ export declare const proxies: { [P in ValidProtocol]: [AgentConstructor, AgentConstructor]; }; export type ProxyAgentOptions = HttpProxyAgentOptions<''> & HttpsProxyAgentOptions<''> & SocksProxyAgentOptions & PacProxyAgentOptions<''> & { /** * Default `http.Agent` instance to use when no proxy is * configured for a request. Defaults to a new `http.Agent()` * instance with the proxy agent options passed in. */ httpAgent?: http.Agent; /** * Default `http.Agent` instance to use when no proxy is * configured for a request. Defaults to a new `https.Agent()` * instance with the proxy agent options passed in. */ httpsAgent?: http.Agent; /** * A callback for dynamic provision of proxy for url. * Defaults to standard proxy environment variables, * see https://www.npmjs.com/package/proxy-from-env for details */ getProxyForUrl?: GetProxyForUrlCallback; }; /** * Uses the appropriate `Agent` subclass based off of the "proxy" * environment variables that are currently set. * * An LRU cache is used, to prevent unnecessary creation of proxy * `http.Agent` instances. */ export declare class ProxyAgent extends Agent { /** * Cache for `Agent` instances. */ cache: LRUCache<string, Agent>; connectOpts?: ProxyAgentOptions; httpAgent: http.Agent; httpsAgent: http.Agent; getProxyForUrl: GetProxyForUrlCallback; constructor(opts?: ProxyAgentOptions); connect(req: http.ClientRequest, opts: AgentConnectOpts): Promise<http.Agent>; destroy(): void; } export {}; //# sourceMappingURL=index.d.ts.map