mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
net/http: delete unused type readClose
readClose hasn't been used in years. Change-Id: Ia963c082e049ef856c2a637fec15204efe48b3b6 Reviewed-on: https://go-review.googlesource.com/20631 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
parent
2a7c446f98
commit
ab5cbc672b
1 changed files with 0 additions and 8 deletions
|
|
@ -138,14 +138,6 @@ func refererForURL(lastReq, newReq *url.URL) string {
|
|||
return referer
|
||||
}
|
||||
|
||||
// Used in Send to implement io.ReadCloser by bundling together the
|
||||
// bufio.Reader through which we read the response, and the underlying
|
||||
// network connection.
|
||||
type readClose struct {
|
||||
io.Reader
|
||||
io.Closer
|
||||
}
|
||||
|
||||
func (c *Client) send(req *Request, deadline time.Time) (*Response, error) {
|
||||
if c.Jar != nil {
|
||||
for _, cookie := range c.Jar.Cookies(req.URL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue