http.proxies
new() {#http.proxies.new}
Returns an empty 'proxies' object
proxies:update(getenv) {#http.proxies:update}
getenv defaults to os.getenv
Reads environmental variables that are used to control if requests go through a proxy.
http_proxy(orCGI_HTTP_PROXYif running in a program withGATEWAY_INTERFACEset): the proxy to use for normal HTTP connectionshttps_proxyorHTTPS_PROXY: the proxy to use for HTTPS connectionsall_proxyorALL_PROXY: the proxy to use for all connections, overridden by other optionsno_proxyorNO_PROXY: a list of hosts to not use a proxy for
Returns proxies.
proxies:choose(scheme, host) {#http.proxies:choose}
Returns the proxy to use for the given scheme and host as a URI.