Instance Property


The cookie storage’s cookies.


@property(readonly, copy) NSArray<NSHTTPCookie *> *cookies;


If you want to sort the cookie storage’s cookies, you should use the sortedCookiesUsingDescriptors: method instead of sorting the result of this method.

See Also

Retrieving Cookies

- getCookiesForTask:completionHandler:

Fetches cookies relevant to the specified task and passes them to the completion handler.

- cookiesForURL:

Returns all the cookie storage’s cookies that are sent to a specified URL.

- sortedCookiesUsingDescriptors:

Returns all of the cookie storage’s cookies, sorted according to a given set of sort descriptors.