Swiftgram/LegacyComponents/LegacyHTTPRequestOperation.h
2017-07-28 16:50:06 +03:00

11 lines
475 B
Objective-C

#import <Foundation/Foundation.h>
@protocol LegacyHTTPRequestOperation <NSObject>
- (void)setOutputStream:(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