This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-28
Channels
- # announcements (2)
- # babashka (16)
- # bangalore-clj (1)
- # beginners (93)
- # boot (11)
- # calva (5)
- # cider (13)
- # clj-kondo (49)
- # cljdoc (14)
- # cljs-dev (1)
- # clojure (99)
- # clojure-dev (3)
- # clojure-europe (1)
- # clojure-india (1)
- # clojure-italy (9)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-russia (1)
- # clojure-spec (31)
- # clojure-uk (21)
- # clojured (2)
- # clojurescript (18)
- # core-async (12)
- # cursive (36)
- # data-science (1)
- # datomic (54)
- # duct (3)
- # emacs (33)
- # events (1)
- # fulcro (17)
- # jobs (1)
- # joker (8)
- # keechma (1)
- # leiningen (7)
- # malli (8)
- # nrepl (19)
- # pathom (6)
- # planck (18)
- # re-frame (20)
- # reagent (18)
- # shadow-cljs (3)
- # sql (7)
- # vim (31)
anybody know how to post a json payload with planck.http?
I'm having trouble seeing how based on the docs: https://cljdoc.org/d/planck/planck/2.23.0/api/planck.http#post
@austin.chamberlin Via opts
you can control things like :accept
an :content-type
Part of the trouble is I don't understand much about http.
(def payload "{\"some\": \"json\"}")
(planck.http/post "" {:content-type :json } )
I'm wondering how I would send that payload
ah got it
thanks Mike
@austin.chamberlin This might be helpful: https://github.com/planck-repl/planck/blob/master/planck-cljs/test/planck/http_test.cljs#L170
Got another q: Is there a way to prompt for interactive input like:
Do the thing? (y/n):
thanks bfabry