From e111dae3f83831874d83ffe0349839a1cffcbaf7 Mon Sep 17 00:00:00 2001 From: tjp Date: Mon, 15 Jan 2024 13:41:09 -0700 Subject: add response.Request in the http client --- client.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'client.go') diff --git a/client.go b/client.go index 8119200..f3ec6a5 100644 --- a/client.go +++ b/client.go @@ -141,9 +141,10 @@ func (hc httpClient) RoundTrip(ctx context.Context, request *Request) (*Response } return &Response{ - Status: Status(hresp.StatusCode), - Meta: hresp, - Body: hresp.Body, + Status: Status(hresp.StatusCode), + Meta: hresp, + Body: hresp.Body, + Request: request, }, nil } -- cgit v1.2.3