ResponseCacher
public struct ResponseCacher
extension ResponseCacher: CachedResponseHandler
ResponseCacher is a convenience CachedResponseHandler making it easy to cache, not cache, or modify a cached
response.
-
Defines the behavior of the
See moreResponseCachertype.Declaration
Swift
public enum Behavior : Sendable -
Returns a
ResponseCacherwith a.cacheBehavior.Declaration
Swift
public static let cache: ResponseCacher -
Returns a
ResponseCacherwith a.doNotCacheBehavior.Declaration
Swift
public static let doNotCache: ResponseCacher -
Declaration
Swift
public func dataTask(_ task: URLSessionDataTask, willCacheResponse response: CachedURLResponse, completion: @escaping (CachedURLResponse?) -> Void)
View on GitHub
Install in Dash