Quellcode durchsuchen

Updated download docstrings to be more specific about destination closure behavior.

Christian Noon vor 9 Jahren
Ursprung
Commit
66fc1a872b
2 geänderte Dateien mit 6 neuen und 6 gelöschten Zeilen
  1. 3 3
      Source/Alamofire.swift
  2. 3 3
      Source/SessionManager.swift

+ 3 - 3
Source/Alamofire.swift

@@ -149,7 +149,7 @@ public func request(resource urlRequest: URLRequestConvertible) -> DataRequest {
 /// specified `urlString`, `method`, `parameters`, `encoding`, `headers` and save them to the `destination`.
 ///
 /// If `destination` is not specified, the contents will remain in the temporary location determined by the
-/// URL session.
+/// underlying URL session.
 ///
 /// - parameter urlString:   The URL string.
 /// - parameter method:      The HTTP method. `.get` by default.
@@ -183,7 +183,7 @@ public func download(
 /// specified `urlRequest` and save them to the `destination`.
 ///
 /// If `destination` is not specified, the contents will remain in the temporary location determined by the
-/// URL session.
+/// underlying URL session.
 ///
 /// - parameter urlRequest:  The URL request.
 /// - parameter destination: The closure used to determine the destination of the downloaded file. `nil` by default.
@@ -204,7 +204,7 @@ public func download(
 /// previous request cancellation to retrieve the contents of the original request and save them to the `destination`.
 ///
 /// If `destination` is not specified, the contents will remain in the temporary location determined by the
-/// URL session.
+/// underlying URL session.
 ///
 /// - parameter resumeData:  The resume data. This is an opaque data blob produced by `URLSessionDownloadTask`
 ///                          when a task is cancelled. See `URLSession -downloadTask(withResumeData:)` for additional

+ 3 - 3
Source/SessionManager.swift

@@ -256,7 +256,7 @@ open class SessionManager {
     /// `parameters`, `encoding`, `headers` and save them to the `destination`.
     ///
     /// If `destination` is not specified, the contents will remain in the temporary location determined by the
-    /// URL session.
+    /// underlying URL session.
     /// 
     /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned.
     ///
@@ -288,7 +288,7 @@ open class SessionManager {
     /// them to the `destination`.
     ///
     /// If `destination` is not specified, the contents will remain in the temporary location determined by the
-    /// URL session.
+    /// underlying URL session.
     ///
     /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned.
     ///
@@ -311,7 +311,7 @@ open class SessionManager {
     /// the contents of the original request and save them to the `destination`.
     ///
     /// If `destination` is not specified, the contents will remain in the temporary location determined by the
-    /// URL session.
+    /// underlying URL session.
     ///
     /// If `startRequestsImmediately` is `true`, the request will have `resume()` called before being returned.
     ///