Showing
2 changed files
with
6 additions
and
0 deletions
@@ -181,6 +181,9 @@ typedef enum _ASINetworkErrorType { | @@ -181,6 +181,9 @@ typedef enum _ASINetworkErrorType { | ||
181 | NSStringEncoding responseEncoding; | 181 | NSStringEncoding responseEncoding; |
182 | 182 | ||
183 | BOOL allowResumeForFileDownloads; | 183 | BOOL allowResumeForFileDownloads; |
184 | + | ||
185 | + // Custom user information assosiated with the request | ||
186 | + NSDictionary *userInfo; | ||
184 | } | 187 | } |
185 | 188 | ||
186 | #pragma mark init / dealloc | 189 | #pragma mark init / dealloc |
@@ -342,4 +345,5 @@ typedef enum _ASINetworkErrorType { | @@ -342,4 +345,5 @@ typedef enum _ASINetworkErrorType { | ||
342 | @property (assign) NSStringEncoding responseEncoding; | 345 | @property (assign) NSStringEncoding responseEncoding; |
343 | @property (assign) BOOL allowCompressedResponse; | 346 | @property (assign) BOOL allowCompressedResponse; |
344 | @property (assign) BOOL allowResumeForFileDownloads; | 347 | @property (assign) BOOL allowResumeForFileDownloads; |
348 | +@property (retain) NSDictionary *userInfo; | ||
345 | @end | 349 | @end |
@@ -90,6 +90,7 @@ static NSError *ASIUnableToCreateRequestError; | @@ -90,6 +90,7 @@ static NSError *ASIUnableToCreateRequestError; | ||
90 | [self setDidFinishSelector:@selector(requestFinished:)]; | 90 | [self setDidFinishSelector:@selector(requestFinished:)]; |
91 | [self setDidFailSelector:@selector(requestFailed:)]; | 91 | [self setDidFailSelector:@selector(requestFailed:)]; |
92 | [self setDelegate:nil]; | 92 | [self setDelegate:nil]; |
93 | + [self setUserInfo:nil]; | ||
93 | url = [newURL retain]; | 94 | url = [newURL retain]; |
94 | cancelledLock = [[NSLock alloc] init]; | 95 | cancelledLock = [[NSLock alloc] init]; |
95 | return self; | 96 | return self; |
@@ -1462,4 +1463,5 @@ static NSError *ASIUnableToCreateRequestError; | @@ -1462,4 +1463,5 @@ static NSError *ASIUnableToCreateRequestError; | ||
1462 | @synthesize responseEncoding; | 1463 | @synthesize responseEncoding; |
1463 | @synthesize allowCompressedResponse; | 1464 | @synthesize allowCompressedResponse; |
1464 | @synthesize allowResumeForFileDownloads; | 1465 | @synthesize allowResumeForFileDownloads; |
1466 | +@synthesize userInfo; | ||
1465 | @end | 1467 | @end |
-
Please register or login to post a comment