Add support for sending HTTP and WebSocket through an HTTP proxy, including use of HTTP_PROXY and HTTPS_PROXY environment variables.