This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-03-12
Channels
- # arachne (1)
- # beginners (26)
- # cljs-dev (53)
- # cljsrn (1)
- # clojure (140)
- # clojure-italy (13)
- # clojure-russia (14)
- # clojure-spec (5)
- # clojure-uk (6)
- # clojurescript (52)
- # datascript (4)
- # datomic (11)
- # dirac (11)
- # emacs (12)
- # hoplon (9)
- # jobs (4)
- # lein-figwheel (1)
- # off-topic (29)
- # om (10)
- # om-next (1)
- # pedestal (3)
- # protorepl (1)
- # re-frame (16)
- # ring (12)
- # rum (27)
- # slack-help (12)
- # spacemacs (27)
- # unrepl (19)
- # untangled (26)
- # yada (8)
Is there an interceptor that would encode response body based on client set headers (`accept` & friends), e.g. based on results of io.pedestal.http.content-negotiation/negotiate-content
?
as the io.pedestal.http.body-params/body-params
does decoding for multiple formats...
Heyas, I'm having trouble with the json parser. My defroutes is:
(defroutes routes
[[["/" {:get [::send-counter (sse/start-event-stream sse-stream-ready)]}
["/with-id" {:get [::send-counter-with-id
(sse/start-event-stream sse-stream-ready-with-id)]}]
["/about" {:get about-page}]
["/echo" {:post [(b/body-params) test-channel]}]
]]])
but when I compile I get the error Caused by: java.lang.AssertionError: Assert failed: This vector for the verb map has extra elements. The leftover elements are (test-channel) from the original data [(b/body-params) test-channel]