forwarder
forwarder copied to clipboard
Propagate proxy error messages with HTTPS CONNECT request
When HTTP client fails HTTPS CONNECT request, it does not return the original response, but an error.
Idea:
Use http.Transport with dedicated dialer using DialVia instead of ProxyURL. On error return specialized error that contains the http.Response or it's representation.