AsyncMiddleware

AsyncMiddleware is placed between the server and your router. It is capable of mutating both incoming requests and outgoing responses. AsyncMiddleware can choose to pass requests on to the next AsyncMiddleware in a chain, or they can short circuit and return a custom Response if desired.

AsyncMiddleware.swift:9
protocol AsyncMiddleware : Middleware
Browse conforming types

This is an async version of Middleware