day8 / re-frame-http-fx

A re-frame "effects handler" for performing Ajax tasks (via cljs-ajax)
MIT License
259 stars 27 forks source link

Provide default request-format #32

Open superstructor opened 5 years ago

superstructor commented 5 years ago

Same as #4 except for :format instead of :response-format.

If not provided when doing a POST (for example) get a 'unrecognized request format nil' exception.

sirmspencer commented 1 year ago

You need to use :body if you dont include a :format. The request ends up as edn, so I also stick this in. :headers {:content-type "application/edn"}