|
@@ -213,8 +213,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
Creates an `NSURLSessionDataTask` with the specified request.
|
|
|
|
|
|
@param request The HTTP request for the request.
|
|
|
- @param uploadProgress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
- @param downloadProgress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param uploadProgressBlock A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param downloadProgressBlock A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
@param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.
|
|
|
*/
|
|
|
- (NSURLSessionDataTask *)dataTaskWithRequest:(NSURLRequest *)request
|
|
@@ -231,7 +231,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
@param request The HTTP request for the request.
|
|
|
@param fileURL A URL to the local file to be uploaded.
|
|
|
- @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param uploadProgressBlock A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
@param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.
|
|
|
|
|
|
@see `attemptsToRecreateUploadTasksForBackgroundSessions`
|
|
@@ -246,7 +246,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
|
@param request The HTTP request for the request.
|
|
|
@param bodyData A data object containing the HTTP body to be uploaded.
|
|
|
- @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param uploadProgressBlock A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
@param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.
|
|
|
*/
|
|
|
- (NSURLSessionUploadTask *)uploadTaskWithRequest:(NSURLRequest *)request
|
|
@@ -258,7 +258,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
Creates an `NSURLSessionUploadTask` with the specified streaming request.
|
|
|
|
|
|
@param request The HTTP request for the request.
|
|
|
- @param progress A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param uploadProgressBlock A block object to be executed when the upload progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
@param completionHandler A block object to be executed when the task finishes. This block has no return value and takes three arguments: the server response, the response object created by that serializer, and the error that occurred, if any.
|
|
|
*/
|
|
|
- (NSURLSessionUploadTask *)uploadTaskWithStreamedRequest:(NSURLRequest *)request
|
|
@@ -273,7 +273,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
Creates an `NSURLSessionDownloadTask` with the specified request.
|
|
|
|
|
|
@param request The HTTP request for the request.
|
|
|
- @param progress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param downloadProgressBlock A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
@param destination A block object to be executed in order to determine the destination of the downloaded file. This block takes two arguments, the target path & the server response, and returns the desired file URL of the resulting download. The temporary file used during the download will be automatically deleted after being moved to the returned URL.
|
|
|
@param completionHandler A block to be executed when a task finishes. This block has no return value and takes three arguments: the server response, the path of the downloaded file, and the error describing the network or parsing error that occurred, if any.
|
|
|
|
|
@@ -288,7 +288,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
Creates an `NSURLSessionDownloadTask` with the specified resume data.
|
|
|
|
|
|
@param resumeData The data used to resume downloading.
|
|
|
- @param progress A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
+ @param downloadProgressBlock A block object to be executed when the download progress is updated. Note this block is called on the session queue, not the main queue.
|
|
|
@param destination A block object to be executed in order to determine the destination of the downloaded file. This block takes two arguments, the target path & the server response, and returns the desired file URL of the resulting download. The temporary file used during the download will be automatically deleted after being moved to the returned URL.
|
|
|
@param completionHandler A block to be executed when a task finishes. This block has no return value and takes three arguments: the server response, the path of the downloaded file, and the error describing the network or parsing error that occurred, if any.
|
|
|
*/
|