http.async.client - Asynchronous HTTP Client - Clojure

http.async.client is Asynchronous HTTP Client for Clojure.

Table of Contents

1 tl;dr

Declare dependency:

(defproject your-project "1.0.0-SNAPSHOT"
  :description "Your project description"
  :dependencies [[org.clojure/clojure "1.4.0"]
                 [http.async.client "0.5.2"]])

Require:

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

GET resource:

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

2 More info

http.async.client is based on Asynchronous Http Client for Java.

It runs with Clojure 1.3, development goes against Clojure 1.4.

For more documentation refer to docs and for API to doc.

http.async.client is distributed under Apache License, Version 2.0.

If you would like to help please look at to do or submit ticket here.

Changelog.

Date: 2013-02-11T13:53+0100

Author: Hubert Iwaniuk

Org version 7.9.3e with Emacs version 24

Validate XHTML 1.0