(character-encoding request)
Return the character encoding for the request, or nil if it is not set.
Source
(defn character-encoding
"Return the character encoding for the request, or nil if it is not set."
{:added "1.3"}
[request]
(if-let [type (get-in request [:headers "content-type"])]
(second (re-find charset-pattern type))))