Skip to content

Instantly share code, notes, and snippets.

@deadghost
Created September 23, 2018 18:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deadghost/fc8ef2ab52d0946fc09a6402497cbad4 to your computer and use it in GitHub Desktop.
Save deadghost/fc8ef2ab52d0946fc09a6402497cbad4 to your computer and use it in GitHub Desktop.
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