Created
February 4, 2013 01:28
-
-
Save shenfeng/4704565 to your computer and use it in GitHub Desktop.
clojure web "hello world"
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
;;; http://http-kit.org | |
(ns main | |
(:use org.httpkit.server)) | |
(defn handler [req] | |
{:status 200 | |
:headers {"Content-Type" "text/plain"} | |
:body "hello world"}) | |
(run-server handler {:port 8080}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment