Protocol
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
Overview
This is an async version of Middleware
Topics
Instance Methods
respond(to:chainingTo:)Called with eachRequestthat passes through this middleware.
Relationships
Inherits From
MiddlewareSwift.SendableSwift.SendableMetatype
Inherited By
AsyncAuthenticatorAsyncBasicAuthenticatorAsyncBearerAuthenticatorAsyncCredentialsAuthenticatorAsyncRequestAuthenticatorAsyncSessionAuthenticator