Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (18 sloc) 0.491 kB
; An example of inserting the linter between each component to ensure
; compliance to the Ring spec.
(ns ring.example.linted
(:use (ring.handler dump)
(ring.middleware stacktrace file file-info reload lint)
(ring.adapter jetty)))
(def app
(-> handle-dump
wrap-lint
wrap-stacktrace
wrap-lint
wrap-file-info
wrap-lint
(wrap-file "example/public")
wrap-lint
(wrap-reload '(ring.handler.dump))
wrap-lint))
(run-jetty app {:port 8080})
Jump to Line
Something went wrong with that request. Please try again.