Up
Authors
- Generated by fedor
-
- Declared in:
- Foundation/NSHTTPCookieStorage.h
Availability: MacOS-X 10.2.0, Base 1.13.0
The NSHTTPCookieStorage class provides a shared instance
which handles the shared cookie store.
Method summary
+ (
NSHTTPCookieStorage*)
sharedHTTPCookieStorage;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the shared instance.
- (
NSHTTPCookieAcceptPolicy)
cookieAcceptPolicy;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns the current cookie accept policy.
- (
NSArray*)
cookies;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns an array of all managed cookies.
- (
NSArray*)
cookiesForURL: (
NSURL*)URL;
Availability: MacOS-X 10.2.0, Base 1.13.0
Returns an array of all known cookies to send to
URL.
- (void)
deleteCookie: (
NSHTTPCookie*)cookie;
Availability: MacOS-X 10.2.0, Base 1.13.0
Deletes cookie from the shared store.
- (void)
setCookie: (
NSHTTPCookie*)cookie;
Availability: MacOS-X 10.2.0, Base 1.13.0
Sets a cookie in the store, replacing any
existing cookie with the same name,
domain and path.
- (void)
setCookieAcceptPolicy: (
NSHTTPCookieAcceptPolicy)cookieAcceptPolicy;
Availability: MacOS-X 10.2.0, Base 1.13.0
Sets the current cookie accept policy.
- (void)
setCookies: (
NSArray*)cookies
forURL: (
NSURL*)URL
mainDocumentURL: (
NSURL*)mainDocumentURL;
Availability: MacOS-X 10.2.0, Base 1.13.0
Adds to the shared store following the policy for
NSHTTPCookieAcceptPolicyOnlyFromMainDocumentDomain
Up