Skip to content

Instantly share code, notes, and snippets.

@ztellman
Created March 3, 2012 05:20
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 ztellman/1964538 to your computer and use it in GitHub Desktop.
Save ztellman/1964538 to your computer and use it in GitHub Desktop.
(use 'lamina.core 'aleph.http)
(defn hello-world [channel request]
(enqueue channel
{:status 200
:headers {"content-type" "text/html"}
:body "Hello World!"}))
(defn hello-world-proxy [channel request]
(hello-world channel request))
(start-http-server hello-world-proxy {:port 8080})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment