Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@perezd

perezd/main.clj Secret

Created February 17, 2012 17:47
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 perezd/488dd95e9444690c77fd to your computer and use it in GitHub Desktop.
Save perezd/488dd95e9444690c77fd to your computer and use it in GitHub Desktop.
(defn·handler·[response-channel·request]$
·7··(enqueue·response-channel$ ·8···········{:status·200$
·9············:headers·{"content-type"·"text/plain"}$ 10············:body·"YES·WORKED."}))$
·1(ns·foo.core$ ·2··(:gen-class)$
·3··(:require·[lamina.core]$ ·4············[aleph.http]))$
1(defproject·foo·"1.0.0-SNAPSHOT"$ 2··:description·"FIXME:·write·description"$
3··:dependencies·[[org.clojure/clojure·"1.3.0"]$ 4·················[aleph·"0.2.1-alpha2-SNAPSHOT"]]$
5··:main foo.core)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment