question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How does one configure a PROXY to use for HTTP(S) clients?

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
slyphoncommented, Dec 13, 2019

Glad to see you’re doing great things! 😄

On Thu, Dec 12, 2019 at 11:10 PM Trustin Lee notifications@github.com wrote:

On, and HI from an ex-tweep! Happy to see an interest from there. ❤️

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/line/armeria/issues/2320?email_source=notifications&email_token=AAALMRB4SDZ3HL24H7QIHULQYMDLZA5CNFSM4J2GHJS2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGY24WY#issuecomment-565292635, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALMRBJYO2OMCEMCWCYGL3QYMDLZANCNFSM4J2GHJSQ .

0reactions
trustincommented, Mar 16, 2020

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configure device proxy and Internet connection settings
Configure the proxy server manually using a registry-based static proxy. Configure a registry-based static proxy for Defender for Endpoint detection and ...
Read more >
Configuring an HTTP Client to Use a Proxy - Instantiations
To setup a proxy directive, set the #proxyUrl on the transport configuration registered as 'httpl'. (SstTransport configurationRegistry at: 'httpl')proxyUrl: (' ...
Read more >
Proxy server types and uses for HTTP Server - IBM
This topic provides information about proxy server types and uses for the IBM® HTTP Server for i Web server. Proxy servers receive requests...
Read more >
What Proxy Setting Should I Use? Top 3 Use Cases - FinSMEs
1. Click the Start button, and then click Settings. · 2. In the Settings window, click Network & Internet. · 3. In the...
Read more >
Connecting the client through a proxy connection
Procedure · Specify the Host name (DNS name or IP address) of the HTTP proxy server and the port required to connect to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found