DefaultSessionCacheIntercepter
public final class DefaultSessionCacheIntercepter : SessionCacheInterceptor
Implementation of a session cache interceptor which allows the response data from an HTTP/HTTPS
request to be temporarily stored.
-
Undocumented
Declaration
Swift
public static let expectedSchemes: [String]
-
Undocumented
Declaration
Swift
public init(storagePolicy: URLCache.StoragePolicy = .allowedInMemoryOnly, for schemes: [String] = expectedSchemes)
-
Declaration
Swift
public func intercept(cachedResponse: CachedURLResponse) -> CachedURLResponse