This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-28
Channels
- # aleph (3)
- # beginners (10)
- # boot (135)
- # clara (2)
- # cljsjs (2)
- # cljsrn (1)
- # clojure (68)
- # clojure-austin (4)
- # clojure-france (2)
- # clojure-japan (1)
- # clojure-spec (30)
- # clojure-uk (11)
- # clojurescript (48)
- # component (65)
- # cursive (5)
- # datomic (40)
- # dirac (5)
- # emacs (3)
- # events (16)
- # funcool (2)
- # klipse (46)
- # lein-figwheel (2)
- # luminus (8)
- # off-topic (4)
- # om (7)
- # other-languages (4)
- # parinfer (21)
- # re-frame (15)
- # reagent (30)
- # ring (1)
- # ring-swagger (9)
- # rum (3)
- # specter (7)
- # test-check (8)
- # testing (5)
- # vim (21)
- # yada (4)
@niwinz Best way to attach the parsed :body
with body-params
and the :body
as a string on the context?
I came up with
(defn body->string
[ctx]
(ct/delegate
{:body-str
(when-let [body ^TypedData (:body ctx)]
(-> body .getBytes String.))}))
It's not my favorite solution because it also requires you to include catacumba.handlers.parse/read-body
before the body->string
handler. Would it make sense to add the option to include the body string to catacumba.handlers.parse/body-params
?