ResponseCacher

public struct ResponseCacher

ResponseCacher is a convenience CachedResponseHandler making it easy to cache, not cache, or modify a cached response.

  • Declaration

    Swift

    public func dataTask(_ task: URLSessionDataTask,
                         willCacheResponse response: CachedURLResponse,
                         completion: @escaping (CachedURLResponse?) -> Void)