python-hyper / hyper

HTTP/2 for Python.
http://hyper.rtfd.org/en/latest/
MIT License
1.05k stars 191 forks source link

SOCKS(5) proxy support #397

Closed matsjoyce closed 3 years ago

matsjoyce commented 5 years ago

Is there any plans or interest in adding SOCKS proxies to hyper? Currently trying to use TOR results in a:

hyper.common.exceptions.ProxyError: Tunnel connection failed: 501 Tor is not an HTTP Proxy

as expected. I have put together some support for it using a modified version of https://github.com/mike820324/socks5 (due to https://github.com/mike820324/socks5/issues/16). Is it worth improving this into a proper PR or is this outside the scope of hyper?

Leezj9671 commented 3 years ago

Is SOCKS5 proxy cool in hyper now?

matsjoyce commented 3 years ago

A different route to try is https://github.com/encode/httpx/, which also doesn't have SOCKS5 support, but is being maintained. Hopefully they might implement it soon?

Leezj9671 commented 3 years ago

You can use httpx-socks if using httpx

matsjoyce notifications@github.com 于 2020年12月26日周六 下午6:11写道:

A different route to try is https://github.com/encode/httpx/, which also doesn't have SOCKS5 support, but is being maintained. Hopefully they might implement it soon?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/python-hyper/hyper/issues/397#issuecomment-751341201, or unsubscribe https://github.com/notifications/unsubscribe-auth/AC25UATAVP77RKIYBQNH7KDSWWZFHANCNFSM4GJPPQOQ .

sethmlarson commented 3 years ago

Hyper is not likely to add new features, the project is not under development any more.