HTTPCookie
public struct HTTPCookie
Represents a RFC 6265 cookie.
-
The name of the cookie.
Declaration
Swift
public let name: String -
The value of the cookie.
Declaration
Swift
public let value: String -
The path within the domain to which this cookie belongs.
Declaration
Swift
public let path: String? -
The domain to which this cookie belongs.
Declaration
Swift
public let domain: String? -
When the cookie expires
Declaration
Swift
public let expires: String? -
How long the cookie can live for.
Declaration
Swift
public let maxAge: String? -
Whether or not this cookie can only be sent to HTTPS servers.
Declaration
Swift
public let secure: Bool? -
Whether or not this cookie can only be read by a server.
Declaration
Swift
public let httpOnly: Bool?
HTTPCookie Structure Reference