Fetches cookies relevant to the specified task and passes them to the completion handler.
- iOS 8.0+
- macOS 10.10+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The task performing a request. The cookie storage can use the URL and other properties of this task’s request to determine which cookies to fetch.
A completion handler that receives an array of cookies as its argument.