This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-03
Channels
- # announcements (7)
- # beginners (114)
- # boot (5)
- # calva (25)
- # cider (26)
- # clojure (82)
- # clojure-dev (20)
- # clojure-europe (2)
- # clojure-italy (8)
- # clojure-losangeles (4)
- # clojure-norway (6)
- # clojure-uk (16)
- # clojurescript (21)
- # clojurex (3)
- # core-async (24)
- # cursive (25)
- # datomic (17)
- # emacs (5)
- # events (4)
- # fulcro (9)
- # funcool (1)
- # graalvm (4)
- # hyperfiddle (2)
- # midje (2)
- # mount (2)
- # off-topic (10)
- # pathom (11)
- # pedestal (5)
- # re-frame (36)
- # reagent (15)
- # reitit (3)
- # ring (4)
- # slack-help (2)
- # spacemacs (3)
- # sql (16)
- # tools-deps (5)
can anyone suggest me a usable way for parsing/unparsing bodies, params, etc on both requests and responses using ring middleware? I found out and tried some libraries https://github.com/ngrunwald/ring-middleware-format https://github.com/metosin/muuntaja/ https://github.com/ring-clojure/ring-json but noone was usable for me. Or maybe I can not prepare them rigth. For example, I have one handler and add all middlewares for it:
(def handler (-> routes
wrap-keyword-params
wrap-json-params
wrap-json-body
wrap-json-response))
and it shows an error java.lang.IllegalArgumentException: Cannot open <{"p" 1, "q" "22"}> as an InputStream
@ivana I don't think you can have both wrap-json-params
and wrap-json-body
-- the docs indicate they are alternatives.