r0man / cljs-http

A ClojureScript HTTP library.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add more to the Wiki!

ashercoren opened this issue · 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.

commented

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"}})