Protocols The following protocols are available globally. Middleware Middleware can mutate aRequest before a resolved Route‘s handler is called and Response before a client receives it. It can also return non-Void to stop propagating events down or up in the chain. See more Declaration Swift public protocol Middleware : AnyObject