Skip to content

Instantly share code, notes, and snippets.

@shenfeng
Created February 4, 2013 01:28
Show Gist options
  • Save shenfeng/4704565 to your computer and use it in GitHub Desktop.
Save shenfeng/4704565 to your computer and use it in GitHub Desktop.
clojure web "hello world"
;;; 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