Instance Methodvapor 4.106.3Vapor

    use(_:at:)

    Adds a pre-initialized Middleware instance.

    MiddlewareConfiguration.swift:25
    mutating func use(_ middleware: Middleware, at position: Position = .end)
    app.middleware.use(fooMiddleware)

    Other members in extension

    Types

    Type members

    • init()

      Create a new, empty Middleware.

    Instance members