-
-
Save deadghost/fc8ef2ab52d0946fc09a6402497cbad4 to your computer and use it in GitHub Desktop.
pedestal default interceptors
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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