This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-10-07
Channels
- # aleph (15)
- # beginners (18)
- # boot (18)
- # business (1)
- # cider (11)
- # cljs-dev (13)
- # cljsrn (19)
- # clojure (14)
- # clojure-austin (8)
- # clojure-dusseldorf (1)
- # clojure-finland (1)
- # clojure-greece (118)
- # clojure-poland (3)
- # clojure-russia (46)
- # clojure-spec (65)
- # clojure-uk (18)
- # clojurebridge (3)
- # clojurescript (16)
- # cloverage (7)
- # core-async (8)
- # cursive (74)
- # datomic (28)
- # editors (3)
- # emacs (3)
- # ethereum (5)
- # hoplon (19)
- # jobs-rus (18)
- # lein-figwheel (1)
- # off-topic (2)
- # om (107)
- # om-next (4)
- # onyx (23)
- # pedestal (23)
- # proton (3)
- # protorepl (1)
- # re-frame (108)
- # reagent (10)
- # ring-swagger (15)
- # spacemacs (2)
- # specter (11)
- # testing (7)
- # untangled (79)
- # vim (4)
- # yada (53)
am i being daft, or are there no guides on dynamically adding/removing interceptors to the chain in a route? the guides link to a 404
@biscuitpants The docs are definitely still a work in progress. I’ve been adding guides when I can, and trying to add placeholders when I link to something that doesn’t exist yet.
oh no i mean the docs on github 🙂 not the new docs!
this one: https://github.com/pedestal/pedestal/blob/master/service/src/io/pedestal/http/route.clj
Yep, that’s a 404. It should go to https://github.com/pedestal/pedestal/blob/master/route/src/io/pedestal/http/route.clj now
yeah this one, sorry, https://github.com/pedestal/pedestal/blob/master/guides/documentation/service-interceptors.md
thanks so much!
ah thank you for the original link
@mtnygard so is this the inteceptor being spoken about: https://github.com/pedestal/pedestal/blob/master/route/src/io/pedestal/http/route.clj#L410
Yes, but it’s no longer a useful example of adding interceptors, because there are a couple levels of indirection still inside that interceptor.
ah. is there another newer example?
basically, we’d like to drop some interceptors on the route health-check
perfect, thank you so much!
http://pedestal.io/api/pedestal.interceptor/io.pedestal.interceptor.chain.html#var-enqueue
Basically, you just call enqueue
with the current context and the new interceptors you want to add to the stack
okay great. seems simple enough. thank you for the help