diff --git a/header.go b/header.go index 524ee67..71c731c 100644 --- a/header.go +++ b/header.go @@ -946,6 +946,8 @@ func (h *ResponseHeader) SetCanonical(key, value []byte) { } // SetCookie sets the given response cookie. +// +// It is save re-using the cookie after the function returns. func (h *ResponseHeader) SetCookie(cookie *Cookie) { h.cookies = setArgBytes(h.cookies, cookie.Key(), cookie.Cookie()) }