Reverting AFDownloadRequestOperation to be a subclass of AFHTTPRequestOperation
This commit is contained in:
parent
2a1d81a792
commit
4cf0199712
2 changed files with 2 additions and 14 deletions
|
|
@ -22,12 +22,10 @@
|
||||||
|
|
||||||
#import "AFHTTPRequestOperation.h"
|
#import "AFHTTPRequestOperation.h"
|
||||||
|
|
||||||
#define kAFNetworkingIncompleteDownloadFolderName @"Incomplete"
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
`AFDownloadRequestOperation` is a subclass of `AFHTTPRequestOperation` for streamed file downloading. Supports Content-Range. (http://tools.ietf.org/html/rfc2616#section-14.16)
|
|
||||||
*/
|
*/
|
||||||
@interface AFDownloadRequestOperation : AFURLConnectionOperation {
|
@interface AFDownloadRequestOperation : AFHTTPRequestOperation {
|
||||||
@private
|
@private
|
||||||
NSString *_responsePath;
|
NSString *_responsePath;
|
||||||
NSError *_downloadError;
|
NSError *_downloadError;
|
||||||
|
|
|
||||||
|
|
@ -55,9 +55,6 @@
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
/**
|
|
||||||
|
|
||||||
*/
|
|
||||||
- (void)setDestination:(NSString *)path allowOverwrite:(BOOL)allowOverwrite {
|
- (void)setDestination:(NSString *)path allowOverwrite:(BOOL)allowOverwrite {
|
||||||
[self willChangeValueForKey:@"isReady"];
|
[self willChangeValueForKey:@"isReady"];
|
||||||
self.destination = path;
|
self.destination = path;
|
||||||
|
|
@ -80,17 +77,10 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#pragma mark -
|
#pragma mark -
|
||||||
|
|
||||||
///**
|
|
||||||
//
|
|
||||||
// */
|
|
||||||
//- (void)setDecideDestinationWithSuggestedFilenameBlock:(void (^)(NSString *filename))block;
|
//- (void)setDecideDestinationWithSuggestedFilenameBlock:(void (^)(NSString *filename))block;
|
||||||
//
|
//
|
||||||
///**
|
|
||||||
//
|
|
||||||
// */
|
|
||||||
//- (void)setShouldDecodeSourceDataOfMimeTypeBlock:(BOOL (^)(NSString *encodingType))block;
|
//- (void)setShouldDecodeSourceDataOfMimeTypeBlock:(BOOL (^)(NSString *encodingType))block;
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue