AdditionalCookieAttribute
public struct AdditionalCookieAttribute
Describes an optional attribute of a cookie.
-
A comment for the cookie.
Declaration
Swift
public static func comment(_ value: String?) -> AdditionalCookieAttribute
-
A URL that can be presented to the user as a link for further information about this cookie.
Declaration
Swift
public static func commentURL(_ value: String?) -> AdditionalCookieAttribute
-
A String value representing a boolean (TRUE/FALSE), stating whether the cookie should be discarded at the end of the session.
Declaration
Swift
public static func discard(_ value: String) -> AdditionalCookieAttribute
-
The cookie’s expiration date. The expiration date is the date when the cookie should be deleted.
Declaration
Swift
public static func expires(_ value: Date?) -> AdditionalCookieAttribute
-
A boolean value that indicates whether this cookie should only be sent over secure channels.
Declaration
Swift
public static func isSecure(_ value: Bool) -> AdditionalCookieAttribute
-
A value stating how long in seconds the cookie should be kept, at most.
Declaration
Swift
public static func maximumAge(_ value: String) -> AdditionalCookieAttribute
-
The URL that set this cookie.
Declaration
Swift
public static func originURL(_ value: URL?) -> AdditionalCookieAttribute
-
The list of ports for the cookie, an array of NSNumber objects containing integers.
Declaration
Swift
public static func portList(_ value: [NSNumber]?) -> AdditionalCookieAttribute
-
The version of the cookie. Must be either 0 or 1. The default is 0.
Declaration
Swift
public static func version(_ value: Int) -> AdditionalCookieAttribute