the PROXY_SELECTOR environment variable proposal post

Instead of set an proxy server unconditionally via *_PROXY environment variables and exclude certain host names via NO_PROXY environment variable, let's reverse the semantic by defining a new environment variable PROXY_SELECTOR which points to an executable that is passed a URI as first argument and will return on stdout:

  • "NO_PROXY" -> if no proxy should get used for the input URI
  • a comma separated list of URLs in the *_PROXY environment variable format, e.g.: "" or if multiple proxies are eligible for the given input URI: ","

Above proposal will enable a more flexible proxy configuration in complex setups and by reversing the semantic, allow explicit proxy configuration of only know URIs.