We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Hi, I might be missing something. this works:
@(clj-http.client/get "https://github.com" {:async? true} #(%) #(%))
but this errors:
@(clj-http.client/request {:url "http://www.google.com" :method :get :async? true :respond #(%) :raise #(%)})
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)
The text was updated successfully, but these errors were encountered:
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
request*
request
* :async? * :respond * :raise
Sorry, something went wrong.
Improve consistency of async client arguments
52cde30
Ensures arguments for request & method-functions (get/put/post etc.) have similarly. Fixes #520.
Successfully merging a pull request may close this issue.
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)
The text was updated successfully, but these errors were encountered: