Created
March 3, 2012 05:20
-
-
Save ztellman/1964538 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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