Skip to content

Commit

Permalink
Add syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielJomphe committed Jul 1, 2011
1 parent 399608a commit e1841d7
Showing 1 changed file with 16 additions and 10 deletions.
26 changes: 16 additions & 10 deletions README.markdown
Expand Up @@ -4,22 +4,28 @@ http.async.client - Asynchronous HTTP Client for Clojure
## *tl;dr*
Declare dependency:

(defproject your-project "1.0.0-SNAPSHOT"
:description "Your project description"
:dependencies [[org.clojure/clojure "1.2.1"]
[org.clojure/clojure-contrib "1.2.0"]
[http.async.client "0.3.1"]])
``` clojure
(defproject your-project "1.0.0-SNAPSHOT"
:description "Your project description"
:dependencies [[org.clojure/clojure "1.2.1"]
[org.clojure/clojure-contrib "1.2.0"]
[http.async.client "0.3.1"]])
```

Require:

(ns sample (:require [http.async.client :as c]))
``` clojure
(ns sample (:require [http.async.client :as c]))
```

GET resource:

(with-open [client (c/create-client)]
(let [response (c/GET client "http://neotyk.github.com/http.async.client/")]
(c/await response)
(c/string response)))
``` clojure
(with-open [client (c/create-client)]
(let [response (c/GET client "http://neotyk.github.com/http.async.client/")]
(c/await response)
(c/string response)))
```

## Information over *http.async.client*

Expand Down

0 comments on commit e1841d7

Please sign in to comment.