Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.