-
-
Save tomjack/a552a8f82180e6d27f51 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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>"))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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