mirror of
https://github.com/zhigang1992/RestKit.git
synced 2026-05-12 03:06:30 +08:00
Reworked reachability initialization to support usage when there is no Internet connectivity.
* When the reachabilityObserver property of RKClient is nil, assume we have reachability * When the baseURL configured contains an IP address or localhost, use hostname based reachability * Else fall through to using Internet reachability if the user has not configured an observer directly
This commit is contained in:
@@ -117,4 +117,12 @@
|
||||
*/
|
||||
- (NSString *)MIMETypeForPathExtension;
|
||||
|
||||
/**
|
||||
Returns YES if the receiver contains a valid IP address
|
||||
|
||||
For example, @"127.0.0.1" and @"10.0.1.35" would return YES
|
||||
while @"restkit.org" would return NO
|
||||
*/
|
||||
- (BOOL)isIPAddress;
|
||||
|
||||
@end
|
||||
|
||||
Reference in New Issue
Block a user