dakrone / clj-http

An idiomatic clojure http client wrapping the apache client. Officially supported version.
http://clojars.org/clj-http
MIT License
1.77k stars 408 forks source link

Add note about :content-type encoding #635

Open danielcompton opened 1 year ago

danielcompton commented 1 year ago

I was confused about this and assumed I could also use :body. I thought this might help others too. LMK if I've misunderstood something here.

dakrone commented 1 year ago

:content-type is for specifying the content type header for:body, for example, {:content-type :json} means that the Content-Type: application/json header will be added to the request.