wrap-keyword-params

ring.middleware.keyword-params

  • (wrap-keyword-params handler)
Middleware that converts the string-keyed :params map to one with keyword
keys before forwarding the request to the given handler.
Does not alter the maps under :*-params keys; these are left with strings.

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source ring/middleware/keyword_params.clj:17 top

(defn wrap-keyword-params
  "Middleware that converts the string-keyed :params map to one with keyword
  keys before forwarding the request to the given handler.
  Does not alter the maps under :*-params keys; these are left with strings."
  [handler]
  (fn [req]
    (handler (update-in req [:params] keyify-params))))
Vars in ring.middleware.keyword-params/wrap-keyword-params: defn fn update-in
Used in 0 other vars

Comments top

No comments for wrap-keyword-params. Log in to add a comment.