Current section
Files
Jump to
Current section
Files
src/lmug-mw-identity.lfe
(defmodule lmug-mw-identity
(doc "Pass-through/no-op middleware.")
(behaviour lmug-middleware)
(export
(wrap 1) (wrap 2)))
(defun wrap (handler)
"The same as #'wrap/2 but with an empty list for options."
(wrap handler '()))
(defun wrap (handler _opts)
"Middleware that does absolutely nothing at all."
handler)