ResponseCacher_Behavior - SwiftDocOrg/Alamofire GitHub Wiki

ResponseCacher.Behavior

Defines the behavior of the ResponseCacher type.

public enum Behavior

Enumeration Cases

cache

Stores the cached response in the cache.

case cache

doNotCache

Prevents the cached response from being stored in the cache.

case doNotCache

modify

Modifies the cached response before storing it in the cache.

case modify(:​ (URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)