-
Notifications
You must be signed in to change notification settings - Fork 29.6k
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
http: deal with the lack of http proxy support in node.js core. #15620
Comments
I'm not keen on adding HTTP proxy support in core, especially because it could be a slippery slope (e.g. people may ask to also add support for SOCKS, etc.). IMHO this is easily done in userland with a custom |
@mscdex The point of this issue is to bikeshed this particular discussion until point |
Did you mean "never gain http proxy support"? |
#15620 (comment) Changed |
I'm not sure this is the kind of implementation that people had in mind, but after reading through #8381 I wrote a tiny lib env-proxy-agent that just wraps proxy-from-env and proxy-agent. I wasn't able to come up with a solution that could overwrite |
@crosscompile why write a separate project when you could've instead fulfilled TooTallNate/node-proxy-agent#11 |
@stevenvachon thanks for pointing that out, I did not see that open issue on node-proxy-agent. I pushed up some changes to my fork of node-proxy-agent that I'm hoping to finish up soon, will follow up in TooTallNate/node-proxy-agent#11 as it's more relevant there. |
Overwriting |
There has been no activity on this feature request for 5 months and it is unlikely to be implemented. It will be closed 6 months after the last non-automated comment. For more information on how the project manages feature requests, please consult the feature request management document. |
There has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment. For more information on how the project manages feature requests, please consult the feature request management document. |
reopen please |
Pretty please re-open this? |
This is a follow-up on #8381.
Summary:
Node's http module does not support http proxies by default. This is a unfortunate situation as libraries don't use packages for http that support http proxies and as a result quite a few tools in the Node ecosystem lack the support for http proxies (i.e. through environment variables).
It would be helpful if Node.js could support user proxies and if someone could take the time to implement it, I think the following plan could help get us there:
1.
(Just reflecting the current state of affairs)1.
could become part of Node.js core in order to reduce the implementation cost for current and new packages.3.
in case someone is stuck with user-land code that doesn't implement proxies.The text was updated successfully, but these errors were encountered: