req, err := http.NewRequest("GET", "http://example.com", nil)
req.AddCookie(&http.Cookie{Name: "c", Value: "ccc"})
resp, err := client.Do(req)
我需要在磁盘上缓存响应,并在从缓存恢复后将其类型保持为 http.Response。有任何想法吗?
慕妹3242003
心有法竹
相关分类