Fork me on GitHub
#aleph
<
2023-01-20
>
igrishaev19:01:26

Hi! Most of HTTP client like clj-http, clj-http-lite, http-kit and so on accept either connecton-timeout or socket-timeout parameters. I've check Aleph docs but don't see if its client accepts something like this. The question is, how can I specify a timeout in case the remote server responds slowly or even doesn't respond?

pithyless20:01:48

There are 3 separate timeouts - pool, connection, and request. They’re in the docstring for http/request - https://cljdoc.org/d/aleph/aleph/0.6.0/api/aleph.http#request

☝️ 6