Kaynağa Gözat

doc: fix CachedResponseHandler ResponseCacher documentation (#3476)

This commit changes the notion of Follow by the notion of Cache. It
tries to follow the convention used in Redirector from
RedirectHandler.swift.
Romain Bertozzi 4 yıl önce
ebeveyn
işleme
4a299e3492
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. 2 2
      Source/CachedResponseHandler.swift

+ 2 - 2
Source/CachedResponseHandler.swift

@@ -58,9 +58,9 @@ public struct ResponseCacher {
         case modify((URLSessionDataTask, CachedURLResponse) -> CachedURLResponse?)
     }
 
-    /// Returns a `ResponseCacher` with a follow `Behavior`.
+    /// Returns a `ResponseCacher` with a `.cache` `Behavior`.
     public static let cache = ResponseCacher(behavior: .cache)
-    /// Returns a `ResponseCacher` with a do not follow `Behavior`.
+    /// Returns a `ResponseCacher` with a `.doNotCache` `Behavior`.
     public static let doNotCache = ResponseCacher(behavior: .doNotCache)
 
     /// The `Behavior` of the `ResponseCacher`.