storeCachedResponse(_:for:)
Stores a cached URL response for a specified data task.
Declaration
func storeCachedResponse(_ cachedResponse: CachedURLResponse, for dataTask: URLSessionDataTask)Parameters
- cachedResponse:
The cached URL response to store for this data task.
- dataTask:
The data task whose response is to be cached.