diff options
Diffstat (limited to 'internal/types/response.go')
-rw-r--r-- | internal/types/response.go | 6 |
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 { |