hackney icon indicating copy to clipboard operation
hackney copied to clipboard

Extract proxy basic auth from URL

Open Coffei opened this issue 1 year ago • 1 comments

Since this library can automatically use ENV variables to set proxy, it would be cool if it could also set proxy basic auth, if it's present in the URL. We have a proxy ENV variable defined as HTTPS_PROXY=http://user:[email protected]:80/. I checked the code and it seems while proxy is configured from both explicit configuration options and ENV, proxy auth is only configured via explicit config options.

Coffei avatar May 10 '24 13:05 Coffei

I will add this support in https://github.com/benoitc/hackney/pull/737 . Thanks for the suggestion :)

benoitc avatar May 10 '24 13:05 benoitc