From b6c0ba24cf5902e6bafff4243979bb12010aa142 Mon Sep 17 00:00:00 2001 From: tjp Date: Wed, 10 Jan 2024 11:06:53 -0700 Subject: add a *Request to Response --- internal/types/response.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'internal') diff --git a/internal/types/response.go b/internal/types/response.go index 26dda05..ccd23b6 100644 --- a/internal/types/response.go +++ b/internal/types/response.go @@ -18,6 +18,12 @@ type Response struct { // Body is the response body, if any. Body io.Reader + + // Request is the request which generated this response. + // + // Available in clients. + // Not set in servers, and there is no need to set it in server handlers. + Request *Request } func (response *Response) Close() error { -- cgit v1.2.3