cljs-http icon indicating copy to clipboard operation
cljs-http copied to clipboard

Add more to the Wiki!

Open ashercoren opened this issue 10 years ago • 1 comments

This library looks awesome, but with the luck of Wiki it's very difficult to understand how to use it (I'm referring to the more complex features, such as custom middleware, custom headers, etc.

ashercoren avatar May 28 '15 08:05 ashercoren

I got stuck a bit too. But it's using standard ring requests so much of the documentation about Ring applies to this library as well. https://github.com/ring-clojure/ring/wiki/Concepts

For instead setting customs headers can be done like this:

(http/post my-uri {
      :headers {"Content-Type" "application/json"}
      :body {:token "my-token"}})

puppybits avatar Jul 09 '15 22:07 puppybits