Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Documentation work.

  • Loading branch information...
commit b23eab0ec5757f69974dcc422330915cd74324cf 1 parent c5c10dd
@neotyk authored
View
12 project.clj
@@ -1,21 +1,19 @@
(defproject http.async.client "0.4.0-SNAPSHOT"
+ :name "http.async.client"
:description "Asynchronous HTTP Client for Clojure"
:url "http://neotyk.github.com/http.async.client/"
:source-path "src/clj"
:java-source-path "src/jvm"
:javac-options {:deprecation "true"}
- :min-lein-version "1.4.1"
:dependencies [[org.clojure/clojure "1.3.0"]
[com.ning/async-http-client "1.6.5"]]
- :dev-dependencies [;; [swank-clj "0.1.5"]
- ;; [autodoc "0.8.0-SNAPSHOT"]
- [marginalia "0.5.1"]
+ :dev-dependencies [[codox "0.3.0"]
[org.eclipse.jetty/jetty-server "7.1.4.v20100610"]
[org.eclipse.jetty/jetty-security "7.1.4.v20100610"]
- [lein-difftest "1.3.3"]
+ [lein-difftest "1.3.3" :exclusions [org.clojure/clojure
+ org.clojure/clojure-contrib]]
[log4j "1.2.13"]]
;; :repositories {"snapshots" "http://oss.sonatype.org/content/repositories/snapshots/"}
- :autodoc {:name "http.async.client"
- :web-src-dir "http://github.com/neotyk/http.async.client/blob/"
+ :autodoc {:web-src-dir "http://github.com/neotyk/http.async.client/blob/"
:web-home "http://neotyk.github.com/http.async.client/autodoc/"
:copyright "Copyright 2011 Hubert Iwaniuk"})
View
6 src/clj/http/async/client.clj
@@ -1,4 +1,6 @@
-; Copyright 2010 Hubert Iwaniuk
+;; ## client.clj -- Asynchronous HTTP Client for Clojure
+
+; Copyright 2011 Hubert Iwaniuk
;
; Licensed under the Apache License, Version 2.0 (the "License");
; you may not use this file except in compliance with the License.
@@ -22,6 +24,8 @@
(com.ning.http.client AsyncHttpClient AsyncHttpClientConfig$Builder)
(com.ning.http.client.providers.netty NettyAsyncHttpProviderConfig)))
+;; # Client Lifecycle
+
(defn create-client
"Creates new Async Http Client.
Arguments:
View
7 src/clj/http/async/client/headers.clj
@@ -1,3 +1,5 @@
+;; Lazy headers.
+
; Copyright 2010 Hubert Iwaniuk
;
; Licensed under the Apache License, Version 2.0 (the "License");
@@ -12,8 +14,7 @@
; See the License for the specific language governing permissions and
; limitations under the License.
-(ns http.async.client.headers
- "Asynchrounous HTTP Client - Clojure - Lazy headers"
+(ns http.async.client.headers "Asynchrounous HTTP Client - Clojure - Lazy headers"
{:author "Hubert Iwaniuk"}
(:import (com.ning.http.client HttpResponseHeaders FluentCaseInsensitiveStringsMap)))
@@ -26,6 +27,7 @@
(first vals)
(into [] vals))))
+;; Convertion of AHC Headers to lazy map.
(defn convert-headers-to-map
"Converts Http Response Headers to lazy map."
[#^HttpResponseHeaders headers]
@@ -57,6 +59,7 @@
(thisfn (rest pseq)))))))
names)))))
+;; Creates cookies from headers.
(defn create-cookies
"Creates cookies from headers."
[headers]
Please sign in to comment.
Something went wrong with that request. Please try again.