Skip to content

Instantly share code, notes, and snippets.

@lildata
Created July 21, 2015 16:18
Show Gist options
  • Save lildata/c9c76ccb38e63e535e68 to your computer and use it in GitHub Desktop.
Save lildata/c9c76ccb38e63e535e68 to your computer and use it in GitHub Desktop.
;; $ lein try ring/ring-core 1.4.0 ring/ring-jetty-adapter 1.4.0
user=> (use 'ring.adapter.jetty)
user=> (defn handler [request]
#_=> {:status 200
#_=> :headers {"Content-Type" "text/plain"}
#_=> :body "Hello [Clojure Ring Jetty] !"})
#'user/handler
user=> (run-jetty handler {:port 3335})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment