Vapor Documentation Beta

Structure HTTPCookies

public struct HTTPCookies: ExpressibleByDictionaryLiteral

A collection of HTTPCookies.

%3 HTTPCookies HTTPCookies ExpressibleByDictionaryLiteral ExpressibleByDictionaryLiteral HTTPCookies->ExpressibleByDictionaryLiteral

Nested Types

HTTPCookies.SameSitePolicy

A cookie which can only be sent in requests originating from the same origin as the target domain.

HTTPCookies.Value

A single cookie (key/value pair).

Conforms To

ExpressibleByDictionaryLiteral

Initializers

init()

public init()

Creates an empty HTTPCookies

init(dictionary​Literal:​)

public init(dictionaryLiteral elements: (String, Value))

See ExpressibleByDictionaryLiteral.

Properties

all

var all: [String: Value]

All cookies.