This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-08-02
Channels
- # announcements (6)
- # beginners (35)
- # calva (5)
- # cider (3)
- # clj-http (1)
- # clj-kondo (52)
- # clojure (51)
- # clojure-conj (2)
- # clojure-europe (28)
- # clojure-losangeles (1)
- # clojure-norway (8)
- # clojure-uk (2)
- # cursive (12)
- # datalevin (2)
- # datomic (38)
- # emacs (7)
- # events (5)
- # gratitude (1)
- # humbleui (7)
- # hyperfiddle (23)
- # jobs (1)
- # off-topic (6)
- # portland-or (1)
- # rdf (3)
- # releases (2)
- # xtdb (3)
#clj-http
<
2024-08-02Hi. The readme states: > In the current version, pooled async request CANNOT specify connection manager. https://github.com/dakrone/clj-http?tab=readme-ov-file#persistent-connections (last sentence in this section) But in the next section, it seems to do exactly that: >
;; Async http clients may also be created and re-used:
> (let [acm (conn/make-reuseable-async-conn-manager {})
> ahclient (core/build-async-http-client {} acm)]
> (client/get ""
> {:connection-manager cm :http-client ahclient}
> handle-response handle-failure))
https://github.com/dakrone/clj-http?tab=readme-ov-file#re-using-httpclient-between-requests
So it does work, if I also specify the :http-client
? Also, I assume the 2nd last line should read:
{:connection-manager acm :http-client ahclient} ;; acm instead of cm