roc
roc
> @imroc should I close the resp.Body manually in the following code snippet? > > ``` > func middlewareDumpReqAndResp(client *req.Client, resp *req.Response) error { > ctx := resp.Request.Context() > logger...
我抽时间看看
This is true, but it may be difficult to troubleshoot, and who can volunteer for this?
暂时不支持,可以作为todo,以后支持
> @gospider007 @imroc 本身就是支持的 > > ```go > client := req.NewClient() > client.SetDial(func(ctx context.Context, network, addr string) (net.Conn, error) { > dialer := &net.Dialer{ > Timeout: 30 * time.Second, >...
避免不同 client 复用相同连接池
It's just an internal implementation, which is based on `golang.org/x/net/http2`, you have no way to call it explicitly. What specific scenarios would require controlling client connection reservation?
代理是client级别的设置,想在request上动态改变,可以参考这里的技巧 https://req.cool/docs/examples/easily-write-crawlers-with-req/#automatically-change-ip-when-request-fails-set-proxy
需求合理,未来考虑实现下
The example shows `ToString()` or `ToBytes()`, which uses `ToString()` for example, and `ToBytes()` is been omitted