Properties | |
NSURLSession * | session |
TRCNetworkReachabilityManager * | reachabilityManager |
Current reachabilityManager , it can be used to get current networkReachabilityStatus , isReachable , etc... More... | |
id< TRCConnectionNSURLSessionDelegate > | delegate |
NSURL * | baseUrl |
You may change baseUrl in runtime. More... | |
Instance Methods | |
(instancetype) | - init |
init and initWithBaseUrl will use [NSURLSessionConfiguration defaultSessionConfiguration] as configuration. More... | |
(instancetype) | - initWithBaseUrl: |
(instancetype) | - initWithConfiguration: |
(instancetype) | - initWithBaseUrl:configuration: |
(void) | - startReachabilityMonitoring |
Invokes startMonitoring on reachabilityManager More... | |
(void) | - stopReachabilityMonitoring |
Invokes stopMonitoring on reachabilityManager More... | |
Instance Methods inherited from <TRCConnection> | |
(NSMutableURLRequest *) | - requestWithOptions:error: |
Creates NSURLRequest using information from TRCRequest . More... | |
(id< TRCProgressHandler >) | - sendRequest:withOptions:completion: |
Sends NSURLRequest via network, then handles response using options.responseBodySerialization or writes into options.outputStream . More... | |
(TRCConnectionReachabilityState) | - reachabilityState |
Returns current reachability state if implemented. More... | |
(void) | - setReachabilityDelegate: |
Sets TRCConnectionReachabilityDelegate , which used to get notified about reachabilityState changes. More... | |
|
readnonatomicstrong |
|
readnonatomicstrong |
Current reachabilityManager
, it can be used to get current networkReachabilityStatus
, isReachable
, etc...
|
readwritenonatomicassign |
|
readwritenonatomicassign |
You may change baseUrl in runtime.
- (instancetype) init |
init
and initWithBaseUrl
will use [NSURLSessionConfiguration defaultSessionConfiguration] as configuration.
- (instancetype) initWithBaseUrl: | (NSURL *) | baseUrl |
- (instancetype) initWithConfiguration: | (NSURLSessionConfiguration *) | configuration |
- (instancetype) initWithBaseUrl: | (NSURL *) | baseUrl | |
configuration: | (NSURLSessionConfiguration *) | configuration | |
- (void) startReachabilityMonitoring |
Invokes startMonitoring
on reachabilityManager
- (void) stopReachabilityMonitoring |
Invokes stopMonitoring
on reachabilityManager