summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authortjp <tjp@ctrl-c.club>2024-01-10 11:06:53 -0700
committertjp <tjp@ctrl-c.club>2024-01-10 11:10:09 -0700
commitb6c0ba24cf5902e6bafff4243979bb12010aa142 (patch)
tree39034f7f4a41ff08393445f33769d262e4644c8f /internal
parentb09d2de941b65956eb7c748e3ce44ff568d4c2af (diff)
add a *Request to Response
Diffstat (limited to 'internal')
-rw-r--r--internal/types/response.go6
1 files changed, 6 insertions, 0 deletions
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 {