23 OF_ASSUME_NONNULL_BEGIN
25 @class OFArray OF_GENERIC(ObjectType);
36 OF_SUBCLASSING_RESTRICTED
39 OFString *_name, *_value, *_domain, *_path;
40 OFDate *_Nullable _expires;
41 bool _secure, _HTTPOnly;
48 @property (copy, nonatomic)
OFString *name;
53 @property (copy, nonatomic)
OFString *value;
58 @property (copy, nonatomic)
OFString *domain;
63 @property (copy, nonatomic)
OFString *path;
68 @property OF_NULLABLE_PROPERTY (copy, nonatomic)
OFDate *expires;
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;
137 OF_ASSUME_NONNULL_END
An abstract class for storing objects in an array.
Definition: OFArray.h:107
A class for storing, accessing and comparing dates.
Definition: OFDate.h:33
The root class for all other classes inside ObjFW.
Definition: OFObject.h:690
An abstract class for storing, adding and removing objects in an array.
Definition: OFMutableArray.h:47
A class for handling strings.
Definition: OFString.h:142
A class for storing and manipulating HTTP cookies.
Definition: OFHTTPCookie.h:37
An abstract class for storing objects in a dictionary.
Definition: OFDictionary.h:82
A class for representing IRIs, URIs, URLs and URNs, for parsing them as well as accessing parts of th...
Definition: OFIRI.h:39
A protocol for the creation of copies.
Definition: OFObject.h:1350