This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-24
Channels
- # 100-days-of-code (7)
- # announcements (1)
- # bangalore-clj (1)
- # beginners (87)
- # boot (6)
- # cljdoc (16)
- # cljsrn (13)
- # clojure (32)
- # clojure-dev (30)
- # clojure-italy (18)
- # clojure-nl (4)
- # clojure-serbia (1)
- # clojure-uk (48)
- # clojurescript (18)
- # cursive (18)
- # datascript (1)
- # datomic (7)
- # events (9)
- # figwheel-main (28)
- # fulcro (2)
- # hyperfiddle (2)
- # immutant (8)
- # jobs (16)
- # liberator (4)
- # nyc (2)
- # pedestal (15)
- # re-frame (8)
- # reagent (12)
- # reitit (8)
- # remote-jobs (1)
- # ring-swagger (2)
- # robots (1)
- # rum (1)
- # schema (1)
- # shadow-cljs (45)
- # spacemacs (49)
- # sql (13)
- # tools-deps (59)
- # uncomplicate (1)
- # vim (10)
@deadghost you put those 3 interceptors at the end of interceptor chain, ex: ::http/interceptors
becomes [... your-interceptors ... mw-cookies intc/content-negotiate intc/coerce-body]
.
https://github.com/pedestal/pedestal/blob/0.5.4/service/src/io/pedestal/http.clj#L272-L277
above contain example to add interceptor(s) to the service map after default-interceptors
applied to service map
it is more precise to say that io.pedestal.http/default-interceptors
creates interceptors based on the options given then creates routing interceptor and finally conj those interceptors to :io.pedestal.http/interceptors
key in the service map
I thought it'd be fine to have it at the top of the default interceptor stack because then it will 100% be registered before a :response
short circuits the thing, and as it is at the top it should be the last interceptor to be applied
I have a print in coerce-body
which prints as a route interceptor but not a default interceptor meaning it's highly likely it's just not being called for some reason
I see the default interceptors I have working are of type io.pedestal.interceptor.Interceptor
while the one I'm having issue with is an interceptor spec of type clojure.lang.PersistentArrayMap