Swiftgram/LegacyComponents/LegacyHTTPRequestOperation.h
2018-01-09 13:17:12 +04:00

12 lines
480 B
Objective-C

#import <Foundation/Foundation.h>
@protocol LegacyHTTPRequestOperation <NSObject>
@property (nonatomic, retain) NSOutputStream *outputStream;
- (void)setCompletionBlockWithSuccess:(void (^)(NSOperation *operation, id responseObject))success
failure:(void (^)(NSOperation *operation, NSError *error))failure;
- (void)setDownloadProgressBlock:(void (^)(NSInteger bytesRead, NSInteger totalBytesRead, NSInteger totalBytesExpectedToRead))block;
@end