This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-12-30
Channels
- # adventofcode (27)
- # ai (1)
- # announcements (2)
- # aws (66)
- # babashka (2)
- # beginners (34)
- # calva (28)
- # cider (5)
- # clj-kondo (18)
- # clojure (16)
- # clojure-europe (4)
- # clojure-norway (2)
- # clojure-uk (3)
- # clojurescript (11)
- # code-reviews (23)
- # conjure (23)
- # core-logic (1)
- # cursive (12)
- # datalevin (1)
- # datomic (9)
- # introduce-yourself (3)
- # kaocha (3)
- # klipse (4)
- # malli (42)
- # midje (1)
- # minecraft (1)
- # missionary (4)
- # music (1)
- # nextjournal (10)
- # polylith (5)
- # re-frame (2)
- # reitit (1)
- # releases (1)
- # sci (126)
- # shadow-cljs (4)
- # sql (2)
- # tools-deps (11)
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?