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