- #26
- Justin Kramer, Brian Tatnall Empty response body hangs c/body, c/string
- #27
- Justin Kramer create-client’s :idle-in-pool-timeout option not being set correctly
- #28
- Karsten Lang Documentation update
Improved logging configuration for running tests.
Patch provided by xeqi.
Now following functions require client as first argument:
- GET
- PUT
- POST
- DELETE
- HEAD
- OPTIONS
- request-stream
- stream-seq
- execute-request
You still create client with create-client function.
This didn’t really bring much value. Migration path. From:
(with-client {:key val}
;; client usage
(let [resp (GET url)]))
To:
(with-open [client (create-client :key val)]
;; client usage
(let [resp (GET client url)]))
Fixed cyclic dependency that was preventing http.async.client from been used in Clojure 1.2.1.
If sending File as body, zero byte copy is used.
Vadim Geshel contribution.
Vadim Geshel contribution.
Previous versions of seq streaming API have been holding to head, not anymore.
Underlying async-http-client has undergone serious optimization changes.
http.async.client/cancel and http.async.client/canceled?
Per request configuration of request timeout in ms.
(GET url :timeout 100)
http.async.client/close.
(c/close)
;; or
(c/close hac)
Response body can be seq, this allows for easy HTTP Stream handling. Documentation.
Added cookies support. Sending and receiving.
Basic and Digest from rfc2617 are supported. Documentation.
Proxy can be specified per request. Documentation.
Specifying User-Agent per client. *http.async.client/create-client* and *http.async.client/with-client*.
Like :options in *http.async.client/GET*.