An object that represents an HTTP cookie. It is an immutable object, initialized from a dictionary containing the cookie attributes.
- iOS 2.0+
- macOS 10.2+
- tvOS 9.0+
- watchOS 2.0+
This class supports two different cookie versions:
Version 0: This version refers to “traditional” or “old-style” cookies, the original cookie format defined by Netscape. The majority of cookies encountered are in this format.
Version 1: This version refers to cookies as defined in RFC 2965, HTTP State Management Mechanism.