PageRenderTime 22ms CodeModel.GetById 15ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/packages/cocoaint/src/foundation/NSHTTPCookie.inc

https://github.com/slibre/freepascal
Pascal | 84 lines | 39 code | 15 blank | 30 comment | 0 complexity | 24a6f218dfb40df20395913866d9f649 MD5 | raw file
Possible License(s): LGPL-2.0, LGPL-2.1, LGPL-3.0
 1{ Parsed from Foundation.framework NSHTTPCookie.h }
 2
 3{$ifdef TYPES}
 4{$ifndef NSHTTPCOOKIE_PAS_T}
 5{$define NSHTTPCOOKIE_PAS_T}
 6
 7{$endif}
 8{$endif}
 9
10{$ifdef RECORDS}
11{$ifndef NSHTTPCOOKIE_PAS_R}
12{$define NSHTTPCOOKIE_PAS_R}
13
14{$endif}
15{$endif}
16
17{$ifdef FUNCTIONS}
18{$ifndef NSHTTPCOOKIE_PAS_F}
19{$define NSHTTPCOOKIE_PAS_F}
20
21{$endif}
22{$endif}
23
24{$ifdef EXTERNAL_SYMBOLS}
25{$ifndef NSHTTPCOOKIE_PAS_S}
26{$define NSHTTPCOOKIE_PAS_S}
27
28{ External string constants }
29var
30  NSHTTPCookieName: NSString; cvar; external;
31  NSHTTPCookieValue: NSString; cvar; external;
32  NSHTTPCookieOriginURL: NSString; cvar; external;
33  NSHTTPCookieVersion: NSString; cvar; external;
34  NSHTTPCookieDomain: NSString; cvar; external;
35  NSHTTPCookiePath: NSString; cvar; external;
36  NSHTTPCookieSecure: NSString; cvar; external;
37  NSHTTPCookieExpires: NSString; cvar; external;
38  NSHTTPCookieComment: NSString; cvar; external;
39  NSHTTPCookieCommentURL: NSString; cvar; external;
40  NSHTTPCookieDiscard: NSString; cvar; external;
41  NSHTTPCookieMaximumAge: NSString; cvar; external;
42  NSHTTPCookiePort: NSString; cvar; external;
43
44{$endif}
45{$endif}
46
47{$ifdef FORWARD}
48  NSHTTPCookie = objcclass;
49  NSHTTPCookiePointer = ^NSHTTPCookie;
50  NSHTTPCookiePtr = NSHTTPCookiePointer;
51
52{$endif}
53
54{$ifdef CLASSES}
55{$ifndef NSHTTPCOOKIE_PAS_C}
56{$define NSHTTPCOOKIE_PAS_C}
57
58{ NSHTTPCookie }
59  NSHTTPCookie = objcclass external (NSObject)
60  private
61    _cookiePrivate: NSHTTPCookieInternal;
62    
63  public
64    function initWithProperties(properties_: NSDictionary): id; message 'initWithProperties:';
65    class function cookieWithProperties(properties_: NSDictionary): id; message 'cookieWithProperties:';
66    class function requestHeaderFieldsWithCookies(cookies: NSArray): NSDictionary; message 'requestHeaderFieldsWithCookies:';
67    class function cookiesWithResponseHeaderFields_forURL(headerFields: NSDictionary; URL: NSURL): NSArray; message 'cookiesWithResponseHeaderFields:forURL:';
68    function properties: NSDictionary; message 'properties';
69    function version: NSUInteger; message 'version';
70    function name: NSString; message 'name';
71    function value: NSString; message 'value';
72    function expiresDate: NSDate; message 'expiresDate';
73    function isSessionOnly: Boolean; message 'isSessionOnly';
74    function domain: NSString; message 'domain';
75    function path: NSString; message 'path';
76    function isSecure: Boolean; message 'isSecure';
77    function isHTTPOnly: Boolean; message 'isHTTPOnly';
78    function comment: NSString; message 'comment';
79    function commentURL: NSURL; message 'commentURL';
80    function portList: NSArray; message 'portList';
81  end;
82
83{$endif}
84{$endif}