Back to Kitura

AdditionalCookieAttribute

docs/Structs/AdditionalCookieAttribute.html

3.0.12.3 KB
Original Source

AdditionalCookieAttribute

public struct AdditionalCookieAttribute

Describes an optional attribute of a cookie.

`

                comment(_:)
                `

A comment for the cookie.

Declaration

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.

Declaration

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.

Declaration

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.

Declaration

Swift

public static func expires(_ value: Date?) -> AdditionalCookieAttribute

`

                isSecure(_:)
                `

A boolean value that indicates whether this cookie should only be sent over secure channels.

Declaration

Swift

public static func isSecure(_ value: Bool) -> AdditionalCookieAttribute

`

                maximumAge(_:)
                `

A value stating how long in seconds the cookie should be kept, at most.

Declaration

Swift

public static func maximumAge(_ value: String) -> AdditionalCookieAttribute

`

                originURL(_:)
                `

The URL that set this cookie.

Declaration

Swift

public static func originURL(_ value: URL?) -> AdditionalCookieAttribute

`

                portList(_:)
                `

The list of ports for the cookie, an array of NSNumber objects containing integers.

Declaration

Swift

public static func portList(_ value: [NSNumber]?) -> AdditionalCookieAttribute

`

                version(_:)
                `

The version of the cookie. Must be either 0 or 1. The default is 0.

Declaration

Swift

public static func version(_ value: Int) -> AdditionalCookieAttribute