UNPKG

get-proxy-settings

Version:

Retrieve proxy settings specified by the system

12 lines (11 loc) 573 B
import { ProxySetting } from "./proxy-settings"; /** * Validate the given proxy setting * @param setting Proxy setting to validate. * * @throws {ProxyConnectionRefusedError} if it cannot connect to the proxy * @throws {ProxyAuthenticationRequiredError} if proxy settings doesn't have credentials but is required * @throws {ProxyInvalidCredentialsError} if proxy settings has credentials but proxy denies the request(407) * @throws {GetProxyError} for other errors */ export declare function validateProxySetting(setting: ProxySetting): Promise<boolean>;