roc
roc
那是因为HTTPS自动嗅探服务端所支持的协议(http1/2/3),选择到了http2,而http2和http3都固定只能是小写,没有大写一说。只有http1才有大小写。如果需要,你可以强制使用http1: ```go c := req.C().EnableDumpAll().SetBaseURL("https://httpbin.org").EnableForceHTTP1() ```
参考注释说明: ```go // SetHeadersNonCanonical set headers from a map for the request which key is a // non-canonical key (keep case unchanged), only valid for HTTP/1.1. func (r *Request) SetHeadersNonCanonical(hdrs...
Not yet, but basically consistent with the standard library
试试 client.SetCommonRetryCondition 传入判断是否要重试的条件
Sorry for the late response, for now, the connection pool cannot be shared between multiple clients. If you want to support connection pool sharing, there are many things to consider....
> 请问连接池在多线程下是并发安全的吗?我看您这句话的意思是不安全的,不知道我的理解是否正确 同一个client并发创建多个请求是并发安全的,这里说的跟并发安全无关
看起来设备没遵循RFC规范,qop是WWW-Authenticate响应中必带的参数: ```txt qop This parameter MUST be used by all implementations. It is a quoted string of one or more tokens indicating the "quality of protection" values supported by the...
我在想,为了提升使用的便利性,req也不必遵循规范,当响应中没有 qop 参数时,默认指定为 `auth`
已经release了个小版本,你可以升级试下