commit | author | age
|
64e824
|
1 |
// |
H |
2 |
// WASDKDownloadHandler.h |
|
3 |
// testDownload |
|
4 |
// |
|
5 |
// Created by wuyx on 15/10/21. |
|
6 |
// Copyright © 2015年 GHW. All rights reserved. |
|
7 |
// |
|
8 |
|
|
9 |
#import <Foundation/Foundation.h> |
|
10 |
|
|
11 |
@class AFHTTPRequestOperation; |
|
12 |
@interface WADownloadHandler : NSObject |
ab47ec
|
13 |
+ (NSURLSessionDownloadTask *)downloadFileWithOption:(NSDictionary *)paramDic |
64e824
|
14 |
withInferface:(NSString*)requestURL |
H |
15 |
savedPath:(NSString*)savedPath |
|
16 |
method:(NSString*)method |
ab47ec
|
17 |
success:(void (^)(NSURLResponse *response, NSURL *filePath))success |
H |
18 |
failure:(void (^)(NSURLResponse *response, NSError *error))failure |
64e824
|
19 |
progress:(void (^)(float progress))progress; |
H |
20 |
@end |
|
21 |
|