Skip to content
This repository
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 22 lines (18 sloc) 0.491 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
; 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})
Something went wrong with that request. Please try again.