/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

  1. { Parsed from Foundation.framework NSHTTPCookie.h }
  2. {$ifdef TYPES}
  3. {$ifndef NSHTTPCOOKIE_PAS_T}
  4. {$define NSHTTPCOOKIE_PAS_T}
  5. {$endif}
  6. {$endif}
  7. {$ifdef RECORDS}
  8. {$ifndef NSHTTPCOOKIE_PAS_R}
  9. {$define NSHTTPCOOKIE_PAS_R}
  10. {$endif}
  11. {$endif}
  12. {$ifdef FUNCTIONS}
  13. {$ifndef NSHTTPCOOKIE_PAS_F}
  14. {$define NSHTTPCOOKIE_PAS_F}
  15. {$endif}
  16. {$endif}
  17. {$ifdef EXTERNAL_SYMBOLS}
  18. {$ifndef NSHTTPCOOKIE_PAS_S}
  19. {$define NSHTTPCOOKIE_PAS_S}
  20. { External string constants }
  21. var
  22. NSHTTPCookieName: NSString; cvar; external;
  23. NSHTTPCookieValue: NSString; cvar; external;
  24. NSHTTPCookieOriginURL: NSString; cvar; external;
  25. NSHTTPCookieVersion: NSString; cvar; external;
  26. NSHTTPCookieDomain: NSString; cvar; external;
  27. NSHTTPCookiePath: NSString; cvar; external;
  28. NSHTTPCookieSecure: NSString; cvar; external;
  29. NSHTTPCookieExpires: NSString; cvar; external;
  30. NSHTTPCookieComment: NSString; cvar; external;
  31. NSHTTPCookieCommentURL: NSString; cvar; external;
  32. NSHTTPCookieDiscard: NSString; cvar; external;
  33. NSHTTPCookieMaximumAge: NSString; cvar; external;
  34. NSHTTPCookiePort: NSString; cvar; external;
  35. {$endif}
  36. {$endif}
  37. {$ifdef FORWARD}
  38. NSHTTPCookie = objcclass;
  39. NSHTTPCookiePointer = ^NSHTTPCookie;
  40. NSHTTPCookiePtr = NSHTTPCookiePointer;
  41. {$endif}
  42. {$ifdef CLASSES}
  43. {$ifndef NSHTTPCOOKIE_PAS_C}
  44. {$define NSHTTPCOOKIE_PAS_C}
  45. { NSHTTPCookie }
  46. NSHTTPCookie = objcclass external (NSObject)
  47. private
  48. _cookiePrivate: NSHTTPCookieInternal;
  49. public
  50. function initWithProperties(properties_: NSDictionary): id; message 'initWithProperties:';
  51. class function cookieWithProperties(properties_: NSDictionary): id; message 'cookieWithProperties:';
  52. class function requestHeaderFieldsWithCookies(cookies: NSArray): NSDictionary; message 'requestHeaderFieldsWithCookies:';
  53. class function cookiesWithResponseHeaderFields_forURL(headerFields: NSDictionary; URL: NSURL): NSArray; message 'cookiesWithResponseHeaderFields:forURL:';
  54. function properties: NSDictionary; message 'properties';
  55. function version: NSUInteger; message 'version';
  56. function name: NSString; message 'name';
  57. function value: NSString; message 'value';
  58. function expiresDate: NSDate; message 'expiresDate';
  59. function isSessionOnly: Boolean; message 'isSessionOnly';
  60. function domain: NSString; message 'domain';
  61. function path: NSString; message 'path';
  62. function isSecure: Boolean; message 'isSecure';
  63. function isHTTPOnly: Boolean; message 'isHTTPOnly';
  64. function comment: NSString; message 'comment';
  65. function commentURL: NSURL; message 'commentURL';
  66. function portList: NSArray; message 'portList';
  67. end;
  68. {$endif}
  69. {$endif}