英文:
HTTP/3 request with HTTP/S or SOCKS5 proxy
问题
quic-go似乎不支持像HTTP/2模块那样为HTTP请求提供代理功能,那么我该如何在quic-go中使用HTTP/S代理或SOCKS5代理进行HTTP请求呢?
英文:
It seems like quic-go does not support proxy for HTTP request like HTTP/2 module, how can I use HTTP/S proxy or SOCKS5 proxy with quic-go for HTTP requests?
答案1
得分: 1
quic-go包似乎没有原生的代理支持(它确实有一个名为proxy的类,但似乎是用于测试数据包丢失和延迟的工具)。
你可以考虑自己扩展它(或者动态地包装它),使用net/proxy来通过SOCKS5代理转发你的请求。
英文:
The quic-go package doesn't seem to have native proxy support (it does have a class called proxy, but it appears to be a tool for testing packet loss and delays).
How about extending it yourself (or dynamically wrapping it) with net/proxy and then using this to forward your requests through a SOCKS5 proxy?
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论