Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

ResponseCacher_Behavior

mattt edited this page Sep 18, 2020 · 2 revisions

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?)
Types
Protocols
Global Typealiases
Clone this wiki locally