MARNetwork is a tiny and elegant High Level Network Layer inspire by Moya,Masonry and RESTful,which can fluent bridge with ReactiveObjc, and then you can enjoy with your FRP ...
To run the example project, clone the repo, and run pod install
from the Example directory first.
MAREntity *entity = MARDispatchCenter.mainChannel;
RACSignal *signal = entity.get.getRequest(nil).start;
[signal subscribeNext:^(id _Nullable x) {
NSLog(@"success:%@",x);
}];
[signal subscribeError:^(NSError * _Nullable error) {
NSLog(@"failure:%@",error);
}];
[signal subscribeCompleted:^{
NSLog(@"completed");
}];
MARNetwork supports OS X 10.8+ and iOS 8.0+.
MARNetwork is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MARNetwork"
Maru-zhang, maru-zhang@foxmail.com
MARNetwork is available under the MIT license. See the LICENSE file for more info.