Instance Method
respond(to:chainingTo:)
Called with each
Request that passes through this middleware.Parameters
requestThe incoming
Request.nextNext
Responderin the chain, potentially another middleware or the main router.
Return Value
An asynchronous Response.
Default Implementations
AsyncMiddleware Implementations
respond(to:chainingTo:)Called with eachRequestthat passes through this middleware.respond(to:chainingTo:)Called with eachRequestthat passes through this middleware.respond(to:chainingTo:)Called with eachRequestthat passes through this middleware.
Middleware Implementations
respond(to:chainingTo:)Called with eachRequestthat passes through this middleware.respond(to:chainingTo:)Called with eachRequestthat passes through this middleware.