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
Abstract proxy implementation #1404
Comments
Good point, although I think this should be refactored as part of the future request's plugin system (whatever that will be at the end), not exactly as a stand alone module in that sense. |
I'm really glad to read that :) I'm not sure how much of this you already know, but there are two ways to ask a web server to proxy somewhere, rather than the regular # Ask the server to retrieve the page for us
GET http://destination.com:port/path HTTP/1.1
# Ask the server to tunnel to the destination for us
CONNECT destination.com:port HTTP/1.1
# then, over the connection to the destination server:
GET /path HTTP/1.1 The first way is pretty simple (but not secure for HTTPS destinations), we just set the The second way is mostly handled by mikeal/tunnel-agent which we depend on. In the future, I envision there being a Want to help us get there? |
Yeah, I'm currently using the first way (somewhat) here. The reason I'm asking is because we need some reliable proxy support in got. As for the future, yes, |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Request is now in maintenance mode and wont be merging any new features. Please see #3142 for more information. |
Wouldn't it be good to abstract your proxy implementation into a separate module that people can make use of? Currently proxies is kind of a no man's land but with this module it just seems to work.
Sure, one could use request for everything but this module is pretty big and includes a lot of features which in many cases aren't needed.
The text was updated successfully, but these errors were encountered: