How should I define a proxy server with authentication (user: pass) in req (it’s an organizational proxy to the outside world).
The documentation directs to finch, but their documentation is not clear either.
Thanks in advance,
Joseph
How should I define a proxy server with authentication (user: pass) in req (it’s an organizational proxy to the outside world).
The documentation directs to finch, but their documentation is not clear either.
Thanks in advance,
Joseph
The code should look like this:
proxy_aut = {"proxy_user", "proxy_pass"}
api_aut = {"api_user", "api_pass"}
proxy_details = {:http, "proxy.example.com", 8080, [proxy_auth: proxy_aut]}
Req.get!(req, connect_options: [proxy: proxy_details])