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.
protocol AsyncMiddleware : Middleware
Browse conforming typesThis is an async version of Middleware