Wrap an app to validate incoming requests and outgoing responses
according to the Ring spec.
(defn wrap-lint
"Wrap an app to validate incoming requests and outgoing responses
according to the Ring spec."
[app]
(fn [req]
(check-req req)
(let [resp (app req)]
(check-resp resp)
resp)))
Comments top
No comments for wrap-lint. Log in to add a comment.