in client.go [183:192]
func (r *Request) WriteTo(w io.Writer) (int64, error) { body, err := r.body() if err != nil { return 0, err } if c, ok := body.(io.Closer); ok { defer c.Close() } return io.Copy(w, body) }