Initializer

init(_:)

Creates an HTTP cookie property key using the given string.

Declaration

init(_ rawValue: String)

Parameters

rawValue

The string to use as a key.

Discussion

You can use this initializer to create HTTP cookie property keys that aren’t already represented by the predefined constants.

This convenience initializer is identical to init(rawValue:).

See Also

Creating Custom Cookie Property Keys

init(rawValue: String)

Creates an HTTP cookie property key using the given string.