23OF_ASSUME_NONNULL_BEGIN
25@class OFArray OF_GENERIC(ObjectType);
36OF_SUBCLASSING_RESTRICTED
39 OFString *_name, *_value, *_domain, *_path;
40 OFDate *_Nullable _expires;
41 bool _secure, _HTTPOnly;
48@property (copy, nonatomic)
OFString *name;
73@property (nonatomic, getter=isSecure)
bool secure;
78@property (nonatomic, getter=isHTTPOnly)
bool HTTPOnly;
83@property (readonly, nonatomic)
117+ (instancetype)cookieWithName: (
OFString *)name
121- (instancetype)
init OF_UNAVAILABLE;
132- (instancetype)initWithName: (
OFString *)name
134 domain: (
OFString *)domain OF_DESIGNATED_INITIALIZER;
An abstract class for storing objects in an array.
Definition OFArray.h:109
A class for storing, accessing and comparing dates.
Definition OFDate.h:34
An abstract class for storing objects in a dictionary.
Definition OFDictionary.h:84
A class for storing and manipulating HTTP cookies.
Definition OFHTTPCookie.h:39
bool secure
Whether the cookie is only to be used with HTTPS.
Definition OFHTTPCookie.h:74
OFString * domain
The domain for the cookie.
Definition OFHTTPCookie.h:59
OFMutableArray * extensions
An array of other attributes.
Definition OFHTTPCookie.h:85
OFString * value
The value of the cookie.
Definition OFHTTPCookie.h:54
OFDate * expires
The date when the cookie expires.
Definition OFHTTPCookie.h:69
bool HTTPOnly
Whether the cookie is only to be accessed through HTTP.
Definition OFHTTPCookie.h:79
OFString * path
The path for the cookie.
Definition OFHTTPCookie.h:64
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition OFIRI.h:41
An abstract class for storing, adding and removing objects in an array.
Definition OFMutableArray.h:48
The root class for all other classes inside ObjFW.
Definition OFObject.h:692
instancetype init()
Initializes an already allocated object.
Definition OFObject.m:696
id copy()
Returns the class.
Definition OFObject.m:1407
A class for handling strings.
Definition OFString.h:143
A protocol for the creation of copies.
Definition OFObject.h:1354