Index

Type aliases

ProxyType

ProxyType: typeof proxyTypes[number]

Variables

Const logger

logger: Logger = new Logging.Logger("proxy")

Const proxyTypes

proxyTypes: ["http", "https", "socks", "socks4"] = ["http", "https", "socks", "socks4"] as const

Functions

Const authListener

  • authListener(url: string, proxy: ProxyInfo): void

exists

  • exists(names: string[]): void

Const getProxies

  • getProxies(): {}

Const getProxiesForUrl

  • getProxiesForUrl(url: string): Promise<ProxyInfo[]>

isProxyType

  • isProxyType(proxyType: string): proxyType is ProxyType

Const onRequestListener

  • onRequestListener(details: Pick<_OnRequestDetails, "url">): Promise<ProxyInfo[] | never[]>

Const proxyFromUrl