req, err := http.NewRequest("GET", "http://example.com", nil) req.AddCookie(&http.Cookie{Name: "c", Value: "ccc"}) resp, err := client.Do(req)
我需要在磁盘上缓存resp并在从缓存恢复后将其类型保持为http.Response.有任何想法吗?
caching http go
caching ×1
go ×1
http ×1