Skip to content

Instantly share code, notes, and snippets.

@tomjack

tomjack/core.clj Secret

Created April 17, 2012 15:04
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 tomjack/a552a8f82180e6d27f51 to your computer and use it in GitHub Desktop.
Save tomjack/a552a8f82180e6d27f51 to your computer and use it in GitHub Desktop.
(ns aleph-test.core
(:use (aleph [http :only (http-request)])))
(defn -main [& [port]]
(if-let [port (try (Integer/parseInt port)
(catch Exception _))]
(http-request {:url (str "http://localhost:" port)
:method :post
:body "foo"})
(println "Usage: lein run <PORT>")))
(defproject aleph-test "0.1.0"
:dependencies [[org.clojure/clojure "1.3.0"]
[aleph "0.2.1-beta2"]]
:main ^:skip-aot aleph-test.core)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment