Go 标准库剖析 1(transport http 请求的承载者)
使用golang net/http库发送http请求,最后都是调用 transport的 RoundTrip方法 type RoundTripper interface { RoundTrip(*Request) (*Response, error) } RoundTrip executes a single HTTP transaction, returning the Response for the request req. (RoundTrip 代表一个http事务,给一个请求返回一个响...阅读全文