This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-10
Channels
- # announcements (14)
- # bangalore-clj (1)
- # beginners (89)
- # calva (166)
- # cider (33)
- # clara (12)
- # clj-kondo (1)
- # cljdoc (8)
- # clojure (101)
- # clojure-austin (1)
- # clojure-colombia (7)
- # clojure-dev (14)
- # clojure-europe (5)
- # clojure-hamburg (10)
- # clojure-italy (9)
- # clojure-nl (31)
- # clojure-spec (4)
- # clojure-uk (39)
- # clojurescript (17)
- # clojutre (3)
- # code-reviews (16)
- # cursive (72)
- # data-science (1)
- # datomic (81)
- # duct (8)
- # emacs (4)
- # figwheel-main (1)
- # graalvm (2)
- # jobs (9)
- # kaocha (21)
- # lambdaisland (2)
- # luminus (4)
- # off-topic (35)
- # re-frame (1)
- # reagent (101)
- # reitit (4)
- # ring-swagger (5)
- # shadow-cljs (17)
- # sql (40)
- # tools-deps (4)
- # vim (28)
Hi, I am unable to see my POST form data on the corresponding ring handler. I can see that the UI is sending the form data as expected.But, on the handler end, when I print the incoming request, I can not find any trace of the sent form data. The code is as below :
(def app
(ring/ring-handler
(ring/router
[["/loginsubmit" {:name ::loginsubmit
:post loginsubmit}]
["/assets/*" (ring/create-resource-handler)]])
(ring/create-default-handler)
{:middleware [session/wrap-session]}))
(defn loginsubmit [request]
(println "loginsubmit handler : entered with "request)
{ :status 200
:headers {"Content-Type" "text/html"}
:body "hello"
})
In my loginsubmit
handler, when I print the request, the form data is not present. UI is sending the form data , and I am also able to get the response "hello". But, how, do I receive the form data parameters from the request ?@binita.bharati do you have the parameters-middleware mounted?
@ikitommi - Thanks! After applying reitit.ring.middleware.parameters/parameters-middleware
, I could see the form data in the request.
👍 4