How does one configure a PROXY to use for HTTP(S) clients?
See original GitHub issueI’m sorry if this is covered in the documentation already, I’ve spent about an hour looking through the source and docs and can’t figure out how to do this. There are examples for how to make a service that acts as a proxy, but not how to configure a client to use a proxy (as far as I can tell).
I’m using a library that’s in turn using armeria to talk to google cloud services using gRPC. At my company, we use an “egress proxy” in production. With curl we can use the http_proxy environment variable to set the proxy address and credentials. I’m trying to figure out how to do something similar (i.e. figure out where to configure this) if the library I’m using gives me the ability to supply com.linecorp.armeria.client.ClientFactory and com.linecorp.armeria.client.ClientOptions to its constructor.
I was expecting something on either ClientFactoryBuilder or in ClientOptionsBuilder that would let me specify the proxy to use when making connections. I see that there’s proxy mentioned in the SessionProtocol enum, but I can’t figure out how to combine these things together.
Any help would be appreciated.
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)

Top Related StackOverflow Question
Glad to see you’re doing great things! 😄
On Thu, Dec 12, 2019 at 11:10 PM Trustin Lee notifications@github.com wrote:
We have added support for SOCKS4/5 and HTTP CONNECT, but we don’t have PROXY support yet. Created a dedicated issue for it since #2321 has been closed: https://github.com/line/armeria/issues/2589