(set-cookie resp name value & [opts])
Sets a cookie on the response. Requires the handler to be wrapped in the
wrap-cookies middleware.
Source
(defn set-cookie
"Sets a cookie on the response. Requires the handler to be wrapped in the
wrap-cookies middleware."
{:added "1.1"}
[resp name value & [opts]]
(assoc-in resp [:cookies name] (merge {:value value} opts)))