Fork me on GitHub
#clj-http
<
2024-08-02
iGEL16:08:20

Hi. 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