mirror of
https://github.com/danog/Telegram.git
synced 2025-01-22 05:52:06 +01:00
31 lines
418 B
Objective-C
31 lines
418 B
Objective-C
#import "TGRawHttpRequest.h"
|
|
|
|
@implementation TGRawHttpRequest
|
|
|
|
- (id)init
|
|
{
|
|
self = [super init];
|
|
if (self != nil)
|
|
{
|
|
_maxRetryCount = 3;
|
|
}
|
|
return self;
|
|
}
|
|
|
|
- (void)cancel
|
|
{
|
|
self.cancelled = true;
|
|
if (self.operation != nil)
|
|
[self.operation cancel];
|
|
[self dispose];
|
|
}
|
|
|
|
- (void)dispose
|
|
{
|
|
self.url = nil;
|
|
self.operation = nil;
|
|
self.completionBlock = nil;
|
|
}
|
|
|
|
@end
|