TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Jan 2016 |
Maintained by Eugene Nguyen.
Depends on: | |
AFNetworking | >= 0 |
JSONKit-NoWarning | >= 0 |
MBProgressHUD | >= 0 |
To run the example project, clone the repo, and run pod install
from the Example directory first.
XBCacheRequest is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "XBCacheRequest"
#import <XBCacheRequest.h>
XBCacheRequest *request = XBCacheRequest(@"http://123.com/abc");
[request setDataPost:[@{@"foo": @"bar",
@"veryfoor": @"bartoo"} mutableCopy]];
[request startAsynchronousWithCallback:^(XBCacheRequest *request, NSString *result, BOOL fromCache, NSError *error) {
if (error)
{
// handle error
}
else
{
// handle response
}
}];
request.disableCache = YES;
[[XBCacheRequestManager sharedInstance] setHost:@"http://example.com"];
// and normally user request without host
XBCacheRequest *request = XBCacheRequest(@"abc");
// but even can work with another host
XBCacheRequest *request = XBCacheRequest(@"http://123.com/abc");
eugenenguyen, [email protected]
XBCacheRequest is available under the MIT license. See the LICENSE file for more info.