Vapor Documentation

Structure Application.​Sessions

public struct Sessions  

Member Of

Application

Core type representing a Vapor application.

Nested Types

Application.Sessions.Provider

Properties

configuration

public var configuration: SessionsConfiguration  

middleware

public var middleware: SessionsMiddleware  

driver

public var driver: SessionDriver  

memory

public var memory: MemorySessions  

Methods

use(_:​)

public func use(_ provider: Provider)  

use(_:​)

public func use(_ makeDriver: @escaping (Application) -> (SessionDriver))