浏览代码

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 年之前
父节点
当前提交
4a299e3492
共有 1 个文件被更改,包括 2 次插入2 次删除
  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`.