Fork me on GitHub
#reitit
<
2021-12-30
>
tami501:12:35

How to configure the response to be edn while using munntaja?

(handler {:request-method :post 
                               :uri "/plus" 
                               :body-params {:y 3 :x 6}})
                               ;; munntaja/response {:format "application/edn"}
                               ;; munntaja/request {:format "application/edn"}
                               ;; :headers {"content-type" "application/edn; charset=utf-16"
                               ;;           "accept" "cheese/cake"
                               ;;           "accept-charset" "cheese-16"})
Tried few things but always returns byte stream of json. I'm only using reitit.ring.middleware.muuntaja/format-middleware and munntaja instance. am I missing something else?