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