Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Proxy functionality #442

Open
JHarzenetter opened this issue Jun 21, 2022 · 1 comment
Open

Support Proxy functionality #442

JHarzenetter opened this issue Jun 21, 2022 · 1 comment

Comments

@JHarzenetter
Copy link

Please add support for proxies. This should be a basic functionality in a Networklibrary. The Proxy should be useable with and without Credentials

@jpd236
Copy link
Collaborator

jpd236 commented Jun 21, 2022

I don't think it's that common for applications to need proxy support for typical Volley use cases of communicating with an API. But we already provide the hooks needed to do this - you can extend HurlStack and override createConnection to inject your own proxy connection logic. You can see for example this question on StackOverflow, which has some relatively simple examples of doing so:

https://stackoverflow.com/questions/23914407/volley-behind-a-proxy-server

We could try to be fancier here, e.g. having clients provide proxy parameters or a Proxy object itself, but given all the potential use cases and ways to configure a Proxy, I'd rather not introduce that complexity to Volley's APIs without more interested clients.

I'll leave this open in case there is other interest, but otherwise I'd say there's no plan to make changes here. If for some reason the above is not sufficient to be able to use proxies with Volley, please let us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants