Instance Methodvapor 4.114.1Vapor
use(_:)
Application+Sessions.swift:70func 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 Sessions
final class Application
Core type representing a Vapor application.
struct Provider
var configuration: SessionsConfiguration { get nonmutating set }
var driver: SessionDriver { get }
var memory: MemorySessions { get }
var middleware: SessionsMiddleware { get }
@preconcurrency func use(_ makeDriver: @escaping (Application) -> (SessionDriver))