(wrap-keyword-params handler)
Middleware that converts the any string keys in the :params map to keywords.
Only keys that can be turned into valid keywords are converted.
This middleware does not alter the maps under :*-params keys. These are left
as strings.
Source
(defn wrap-keyword-params
"Middleware that converts the any string keys in the :params map to keywords.
Only keys that can be turned into valid keywords are converted.
This middleware does not alter the maps under :*-params keys. These are left
as strings."
[handler]
(fn
([request]
(handler (keyword-params-request request)))
([request respond raise]
(handler (keyword-params-request request) respond raise))))