Instance Methodvapor 4.114.1Vapor
use(_:)
Application+Responder.swift:55func use(_ provider: Provider)
func use(_ provider: Provider)
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 Responder
final class Application
Core type representing a Vapor application.
struct Provider
let application: Application
var current: Vapor.Responder { get }
var `default`: Vapor.Responder { get }
func respond(to request: Request) -> EventLoopFuture<Response>
@preconcurrency func use(_ factory: @escaping (Application) -> (Vapor.Responder))