Closed peter-wilkins closed 2 years ago
Hi, correct way to call client/request with respond and raise handler is
@(clj-http.client/request
{:url "http://www.google.com"
:method :get
:async? true}
#(%)
#(%))
This part of documentation seems to be wrong. It seems, it was meant for request*
not request
* :async?
* :respond
* :raise
Hi, I might be missing something. this works:
but this errors:
java.lang.ClassCastException: org.apache.http.impl.nio.client.FutureWrapper cannot be cast to clojure.lang.Associativejava.lang.ClassCastException: org.apache.http.impl.nio.client.FutureWrapper cannot be cast to clojure.lang.Associative at clojure.lang.RT.assoc (RT.java:823) clojure.core$assoc__5401.invokeStatic (core.clj:191) clojure.core/assoc (core.clj:190) clj_http.client$request_timing_response.invokeStatic (client.clj:1073) clj_http.client$request_timing_response.invoke (client.clj:1071) clj_http.client$wrap_request_timing$fn__6094.invoke (client.clj:1083)