Skip to content

Instantly share code, notes, and snippets.

@zcaudate
Created June 29, 2012 22:35
Show Gist options
  • Save zcaudate/3021117 to your computer and use it in GitHub Desktop.
Save zcaudate/3021117 to your computer and use it in GitHub Desktop.
basic ring server
(use 'ring.adapter.jetty)
(defn naked-handler [request]
{:status 200
:headers {"Content-Type" "text/html"}
:body (str request})
(def app #'naked-handler)
(defonce server (run-jetty #'app {:port 8080 :join? false}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment