Instance Subscriptvapor 4.114.1Vapor
subscript(_:)
Get and set values in the container by key.
subscript(key: String) -> String? { get set }
Get and set values in the container by key.
subscript(key: String) -> String? { get set }
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 SessionData
A container for storing data associated with a given SessionID
.
@frozen struct String
A Unicode string value that is a collection of characters.
init()
Creates a new empty session data container.
init(dictionaryLiteral elements: (String, String)...)
init(from decoder: Decoder) throws
init(initialData data: [String : String])
var snapshot: [String : String] { get }
A copy of the current data in the container.
static func == (lhs: SessionData, rhs: SessionData) -> Bool
func encode(to encoder: Encoder) throws
init(_ data: [String : String])