Behavior

public enum Behavior

Defines the behavior of the ResponseCacher type.

  • cache: Stores the cached response in the cache.
  • doNotCache: Prevents the cached response from being stored in the cache.
  • modify: Modifies the cached response before storing it in the cache.
  • Undocumented

    Declaration

    Swift

    case cache
  • Undocumented

    Declaration

    Swift

    case doNotCache
  • Undocumented

    Declaration

    Swift

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