Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 9 lines (8 sloc) 0.208 kb
fc5af210 »
2010-08-30 Documentation update in progress.
1 (ns sample
0d4ad007 »
2010-09-09 Wrong namespace in sample.
2 (:require [http.async.client :as c]))
fc5af210 »
2010-08-30 Documentation update in progress.
3
efe4955e » skuro
2010-11-08 Provide an empty configuration
4 (with-client {}
78ada100 » skuro
2010-11-08 Wrap the code in a with-client call to avoid leaking connections
5 (let [r (c/GET "http://example.com/")]
6 (println "done?" (c/done? r))
7 (c/await r)
8 (println "done?" (c/done? r))
9 (c/string r)))
Something went wrong with that request. Please try again.