Skip to content

Instantly share code, notes, and snippets.

@robbiev
Created September 8, 2013 16:34
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 robbiev/6486248 to your computer and use it in GitHub Desktop.
Save robbiev/6486248 to your computer and use it in GitHub Desktop.
Example Vert.x Clojure verticle
(ns hello
(:require [vertx.http :as http]))
(-> (http/server)
(http/on-request
#(-> %
(http/server-response)
(http/add-header "Content-Type" "text/html")
(http/end "<html><head/><body></body><h1>Clojure + Vert.x</h1></html>")))
(http/listen 8080 "0.0.0.0"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment