Skip to content

Instantly share code, notes, and snippets.

@benreesman
Created January 17, 2011 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save benreesman/783678 to your computer and use it in GitHub Desktop.
Save benreesman/783678 to your computer and use it in GitHub Desktop.
(ns prototype.web
(:require [clojure.contrib.logging :as log]
[ring.adapter.jetty :as ring-jetty]
[ring.middleware.reload :as ring-reload]
[ring.middleware.stacktrace :as ring-stacktrace]
[ring.middleware.session :as ring-session]
[hiccup.core :as hi]))
(defn handler
[req]
(log/info req)
{:status 200})
(defn start-webserver
[]
(ring-jetty/run-jetty
#'handler
{:port 8080 :join? false}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment