0.2.3 permalink Arrow_down_16x16
  • (wrap-lint app)
Wrap an app to validate incoming requests and outgoing responses
according to the Ring spec.

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/lint.clj:85 top

(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)))
Vars in ring.middleware.lint/wrap-lint: defn fn let
Used in 0 other vars

Comments top

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