TRCSessionTaskContext Class Reference
Inheritance diagram for TRCSessionTaskContext:

Properties

TRCConnectionNSURLSessionconnection
 

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...
 

Property Documentation

◆ connection

- (TRCConnectionNSURLSession*) connection
readwritenonatomicweak

Method Documentation

◆ initWithTask:options:completion:()

- (instancetype) initWithTask: (NSURLSessionDataTask *)  task
options: (id< TRCConnectionRequestSendingOptions >)  options
completion: (TRCConnectionCompletion completion 

◆ shouldProcessResponse:()

- (BOOL) shouldProcessResponse: (NSURLResponse *)  response

◆ didSendBodyData:totalBytesSent:totalBytesExpectedToSend:()

- (void) didSendBodyData: (int64_t)  bytesSent
totalBytesSent: (int64_t)  totalBytesSent
totalBytesExpectedToSend: (int64_t)  totalBytesExpectedToSend 

◆ didReceiveData:()

- (void) didReceiveData: (NSData *)  data

◆ didCompleteWithError:()

- (void) didCompleteWithError: (NSError *)  networkError

◆ didReceiveChallenge:completionHandler:()

- (void) didReceiveChallenge: (NSURLAuthenticationChallenge *)  challenge
completionHandler: (void(^)(NSURLSessionAuthChallengeDisposition disposition, NSURLCredential *credential))  completionHandler 

◆ state()

- (TRCProgressHandlerState) state

Returns current state of network operation.

Reimplemented from <TRCProgressHandler>.