Type alias ProxyAgentOptions

ProxyAgentOptions: HttpProxyAgentOptions<""> & HttpsProxyAgentOptions<""> & SocksProxyAgentOptions & PacProxyAgentOptions<""> & {
    getProxyForUrl?: GetProxyForUrlCallback;
    httpAgent?: http.Agent;
    httpsAgent?: http.Agent;
}

Type declaration

  • Optional getProxyForUrl?: GetProxyForUrlCallback

    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

  • Optional httpAgent?: http.Agent

    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.

  • Optional httpsAgent?: 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.

Generated using TypeDoc