使用HTTP/S或SOCKS5代理的HTTP/3请求

huangapple go评论75阅读模式
英文:

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?

huangapple
  • 本文由 发表于 2022年7月31日 10:12:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/73180245.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定