Initializervapor 4.114.1Vapor
init
Create a new, empty Middleware
.
init()
Create a new, empty Middleware
.
init()
import Vapor
Vapor is a framework for building server applications, APIs and websites in Swift. It provides a safe, performant and scalable foundation for building large complex backends.
struct Middlewares
Configures an application’s active Middleware
. Middleware will be used in the order they are added.
func resolve() -> [Middleware]
Resolves the configured middleware for a given container
mutating func use(_ middleware: Middleware, at position: Position = .end)
Adds a pre-initialized Middleware
instance.
enum Position