Instance Propertyvapor 4.114.1Vapor
middleware
Application+Sessions.swift:52var middleware: SessionsMiddleware { get }
var middleware: SessionsMiddleware { get }
s5Vapor11ApplicationC8SessionsV10middlewareAA0C10MiddlewareCvp
What are these?4CFWH
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.
final class SessionsMiddleware
Uses HTTP cookies to save and restore sessions for connecting clients.
var configuration: SessionsConfiguration { get nonmutating set }
var driver: SessionDriver { get }
var memory: MemorySessions { get }
@preconcurrency func use(_ makeDriver: @escaping (Application) -> (SessionDriver))
func use(_ provider: Provider)
struct Provider