Skip to content

Instantly share code, notes, and snippets.

@deadghost
Created Sep 23, 2018
Embed
What would you like to do?
pedestal default interceptors
;; I have a print in coerce-body's :leave function.
;; Nothing prints.
(::http/servlet
(-> {::http/routes routes
::http/join? true
::http/router :linear-search}
(http/default-interceptors)
(update ::http/interceptors conj mw/cookies)
(update ::http/interceptors conj intc/content-negotiate)
(update ::http/interceptors conj intc/coerce-body)
(http/create-servlet)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment