Remove Response.Request field
This commit is contained in:
parent
e2c907a7f6
commit
824887eab9
@ -88,7 +88,6 @@ func (c *Client) Do(req *Request) (*Response, error) {
|
|||||||
if err := resp.read(conn); err != nil {
|
if err := resp.read(conn); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
resp.Request = req
|
|
||||||
// Store connection state
|
// Store connection state
|
||||||
resp.TLS = conn.ConnectionState()
|
resp.TLS = conn.ConnectionState()
|
||||||
|
|
||||||
|
@ -21,9 +21,6 @@ type Response struct {
|
|||||||
// Body contains the response body for successful responses.
|
// Body contains the response body for successful responses.
|
||||||
Body io.ReadCloser
|
Body io.ReadCloser
|
||||||
|
|
||||||
// Request is the request that was sent to obtain this response.
|
|
||||||
Request *Request
|
|
||||||
|
|
||||||
// TLS contains information about the TLS connection on which the response
|
// TLS contains information about the TLS connection on which the response
|
||||||
// was received.
|
// was received.
|
||||||
TLS tls.ConnectionState
|
TLS tls.ConnectionState
|
||||||
|
Loading…
Reference in New Issue
Block a user