This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-03-25
Channels
- # announcements (8)
- # aws (50)
- # aws-lambda (6)
- # babashka (25)
- # beginners (119)
- # bristol-clojurians (5)
- # calva (25)
- # chlorine-clover (23)
- # cider (6)
- # cljs-dev (125)
- # clojure (63)
- # clojure-austin (1)
- # clojure-belgium (1)
- # clojure-dev (48)
- # clojure-europe (11)
- # clojure-italy (2)
- # clojure-nl (5)
- # clojure-spec (3)
- # clojure-uk (66)
- # clojurescript (14)
- # core-logic (5)
- # datomic (13)
- # emacs (10)
- # events (2)
- # fulcro (37)
- # graalvm (11)
- # hoplon (95)
- # jobs-discuss (9)
- # juxt (11)
- # kaocha (16)
- # meander (13)
- # off-topic (24)
- # pedestal (4)
- # re-frame (36)
- # reagent (10)
- # reitit (15)
- # ring-swagger (5)
- # shadow-cljs (23)
- # spacemacs (2)
- # sql (13)
- # tools-deps (32)
- # xtdb (11)
@ddeaguiar that worked great, just for the reference just in case someone else faces the same problem. here are the changes
(def logger
(interceptor/on-request
::log-request
(fn [request]
(log/info :msg request)
request)))
(def service-map
{::http/type :jetty
::http/resource-path "/public"
::http/port 3001
::http/routes r/routes
::http/request-logger logger}) ;; <----- update the default logger with a custom one
Great! At some point I’ll update the Default Interceptors docs to make overriding clearer
👍 8
I have a plain html form and I am rendering it with Semler
the body of the request looks like this :body #object[org.eclipse.jetty.server.HttpInputOverHTTP 0x3747fe8b "HttpInputOverHTTP@3747fe8b[c=0,q=0,[0]=null,s=STREAM]"]
how can I parse that?
the content type is “application/x-www-form-urlencoded