roc
roc
可以在创建client时就调用一次 SetProxyURL
不带 body 默认content-length不就是 0 么
只要没显式设置无法获取长度的 body 时(比如空的 Reader),就会自动设置Content-Length
SetUserAgent 可以自定义 User-Agent Accept-Encoding 也可以通过 header 自行设置,如果显式设置,收到请求后不会自动解压,需自行根据设置的压缩的格式,尝试解压
建议尝试降低版本,go 版本兼容矩阵:https://github.com/imroc/req?tab=readme-ov-file#go-version-compatibility-matrix
Do you have any panic log? Is https://github.com/imroc/req/issues/456 related
嗯,很早就关注标准库支持 http3 了,进展比较慢,等到足够成熟时就会切换
嗯,得研究下当前能力能否完全替代quic-go
RawURL 就是发请求是直接传入的url字符串, 比如 Get(url) 中的url。 可以用Client中间件获取完整URL ```go package main import ( "fmt" "github.com/imroc/req/v3" ) func main() { c := req.C(). WrapRoundTripFunc(func(rt req.RoundTripper) req.RoundTripFunc { return func(req *req.Request) (resp *req.Response, err...
zstd and brotli both are supported by default: https://github.com/imroc/req/blob/2069ef940dcb1c493d80750609b589765be3c465/internal/compress/reader.go#L17-L20 Do you use latest version? Can you provide reproducible code?