Initializervapor 4.114.1Vapor
init
Creates an empty HTTPCookies
init()
Creates an empty HTTPCookies
init()
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 HTTPCookies
A collection of HTTPCookie
s.
init(dictionaryLiteral elements: (String, Value)...)
See ExpressibleByDictionaryLiteral
.
var all: [String : Value] { get set }
All cookies.
subscript(name: String) -> Value? { get set }
Access HTTPCookies
by name
enum SameSitePolicy
A cookie which can only be sent in requests originating from the same origin as the target domain.
struct Value
A single cookie (key/value pair).