Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Async Http Client - Clojure
Clojure CSS Emacs Lisp

Merge pull request #56 from jcrossley3/websocket-options

Allow websocket to take request options
latest commit 2d40623d61
@cch1 authored

README.org

http.async.client - Asynchronous HTTP Client - Clojure

http.async.client is the Asynchronous HTTP Client for Clojure. It is promise-based and uses the Asynchronous Http Client for Java for the heavy lifting.

Versioning

This library uses semantic versioning. An overview of changes by version is available in the changelog.

Distribution

All released artifacts are deployed to Clojars.

http://clojars.org/http.async.client/latest-version.svg

Build status

TravisCI is used to track the build status of intermediate commits on the following branches:

masterhttps://secure.travis-ci.org/cch1/http.async.client.png?branch=master
developmenthttps://secure.travis-ci.org/cch1/http.async.client.png?branch=development

Example

Declare dependency (using leiningen, in this example):

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

Source:

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

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

More info

It runs with Clojure 1.4.0, 1.5.1 and 1.6.0. Development is against Clojure 1.6.0.

For complete documentation refer to the project documentation index.

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

If you would like to report an problem or submit a request, create an issue.

Finally, much thanks is owed to those contributors who have made this project so successful.

Something went wrong with that request. Please try again.