Structure

HTTPCookiePropertyKey

Constants that define the supported keys in a cookie attributes dictionary.

Declaration

struct HTTPCookiePropertyKey

Topics

Cookie Property Keys

static let comment: HTTPCookiePropertyKey

An NSString object containing the comment for the cookie.

static let commentURL: HTTPCookiePropertyKey

An NSURL object or NSString object containing the comment URL for the cookie.

static let discard: HTTPCookiePropertyKey

An NSString object stating whether the cookie should be discarded at the end of the session.

static let domain: HTTPCookiePropertyKey

An NSString object containing the domain for the cookie.

static let expires: HTTPCookiePropertyKey

An NSDate object or NSString object specifying the expiration date for the cookie.

static let maximumAge: HTTPCookiePropertyKey

An NSString object containing an integer value stating how long in seconds the cookie should be kept, at most.

static let name: HTTPCookiePropertyKey

An NSString object containing the name of the cookie (required).

static let originURL: HTTPCookiePropertyKey

An NSURL or NSString object containing the URL that set this cookie.

static let path: HTTPCookiePropertyKey

An NSString object containing the path for the cookie.

static let port: HTTPCookiePropertyKey

An NSString object containing comma-separated integer values specifying the ports for the cookie.

static let secure: HTTPCookiePropertyKey

An NSString object indicating that the cookie should be transmitted only over secure channels.

static let value: HTTPCookiePropertyKey

An NSString object containing the value of the cookie.

static let version: HTTPCookiePropertyKey

An NSString object that specifies the version of the cookie.

Creating Custom Cookie Property Keys

init(String)

Creates an HTTP cookie property key using the given string.

init(rawValue: String)

Creates an HTTP cookie property key using the given string.

Relationships

See Also

Accessing Cookie Properties as Key-Value Pairs

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software