
Properties | |
| TRCConnectionNSURLSession * | connection |
Instance Methods | |
| (instancetype) | - initWithTask:options:completion: |
| (BOOL) | - shouldProcessResponse: |
| (void) | - didSendBodyData:totalBytesSent:totalBytesExpectedToSend: |
| (void) | - didReceiveData: |
| (void) | - didCompleteWithError: |
| (void) | - didReceiveChallenge:completionHandler: |
| (TRCProgressHandlerState) | - state |
| Returns current state of network operation. More... | |
Instance Methods inherited from <TRCProgressHandler> | |
| (void) | - setUploadProgressBlock: |
| Sets upload block, which called after each upload progress change. More... | |
| (void) | - setDownloadProgressBlock: |
| Sets download block, which called after each upload progress change. More... | |
| (void) | - pause |
| Pauses current upload or download progress. More... | |
| (void) | - resume |
| Resumes current upload or download progress. More... | |
| (void) | - cancel |
| Cancels current upload or download progress. More... | |
|
readwritenonatomicweak |
| - (instancetype) initWithTask: | (NSURLSessionDataTask *) | task | |
| options: | (id< TRCConnectionRequestSendingOptions >) | options | |
| completion: | (TRCConnectionCompletion) | completion | |
| - (BOOL) shouldProcessResponse: | (NSURLResponse *) | response |
| - (void) didSendBodyData: | (int64_t) | bytesSent | |
| totalBytesSent: | (int64_t) | totalBytesSent | |
| totalBytesExpectedToSend: | (int64_t) | totalBytesExpectedToSend | |
| - (void) didReceiveData: | (NSData *) | data |
| - (void) didCompleteWithError: | (NSError *) | networkError |
| - (void) didReceiveChallenge: | (NSURLAuthenticationChallenge *) | challenge | |
| completionHandler: | (void(^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential)) | completionHandler | |
| - (TRCProgressHandlerState) state |
Returns current state of network operation.
Reimplemented from <TRCProgressHandler>.