Middleware

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

Middleware.swift:8
@preconcurrency protocol Middleware : Sendable
Browse conforming types