Hello Gophers,
I've been using Gorilla Websocket for a persistent connection and it has been working as expected.
Now there is a need to achieve the same functionality over a Proxy.
After researching a bit, I came across
http.ProxyFromEnvironment
But I need to connect to the Proxy using an URL, a proxy username and password.
It looks like I should use this function
func (hpd *httpProxyDialer) Dial(network string, addr string) (net.Conn, error)
Can someone explain how I should set the Username and Password for the hpd, if possible, with an example?