Dev Build / cleanup (push) Canceled after 0s
Dev Build / typecheck (push) Canceled after 0s
Dev Build / build (linux-arm64, ubuntu-24.04-arm, linux-arm64) (push) Canceled after 0s
Dev Build / build (linux-x64, ubuntu-latest, linux-x64) (push) Canceled after 0s
Dev Build / build (win-x64, windows-latest, win32-x64) (push) Canceled after 0s
Dev Build / dispatch-dev-docker (push) Canceled after 0s
26 lines
870 B
Plaintext
26 lines
870 B
Plaintext
import Dispatcher from './dispatcher'
|
|
import buildConnector from './connector'
|
|
import { IncomingHttpHeaders } from './header'
|
|
import Pool from './pool'
|
|
|
|
export default Socks5ProxyAgent
|
|
|
|
declare class Socks5ProxyAgent extends Dispatcher {
|
|
constructor (proxyUrl: string | URL, options?: Socks5ProxyAgent.Options)
|
|
}
|
|
|
|
declare namespace Socks5ProxyAgent {
|
|
export interface Options extends Pool.Options {
|
|
/** Additional headers to send with the proxy connection */
|
|
headers?: IncomingHttpHeaders;
|
|
/** SOCKS5 proxy username for authentication */
|
|
username?: string;
|
|
/** SOCKS5 proxy password for authentication */
|
|
password?: string;
|
|
/** Custom connector function for proxy connection */
|
|
connect?: buildConnector.connector;
|
|
/** TLS options for the proxy connection (for SOCKS5 over TLS) */
|
|
proxyTls?: buildConnector.BuildOptions;
|
|
}
|
|
}
|