Latest 0.2.0
Homepage https://github.com/Maru-zhang/MARNetwork
License MIT
Platforms ios 8.0
Dependencies AFNetworking, ReactiveObjC
Authors

CI Status
Version
License
Platform

What

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 …

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Introduction

usage

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");
}];

Requirements

MARNetwork supports OS X 10.8+ and iOS 8.0+.

Installation

MARNetwork is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "MARNetwork"

Author

Maru-zhang, [email protected]

License

MARNetwork is available under the MIT license. See the LICENSE file for more info.

Latest podspec

{
    "name": "MARNetwork",
    "version": "0.2.0",
    "summary": "A tiny and legant Network abstraction layer with ReactiveObjC.",
    "description": "This network layer was inspire by Moya and YTKNetwork, compare with YTKNetwork, MARNetwork improve two awesome features.firstly,you can make serveral domain request by MARNetwork and you can wisely manage them.Secondly, you can use ReactiveObjc with Network Layer, so that make your app more and more legant.",
    "homepage": "https://github.com/Maru-zhang/MARNetwork",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Maru-zhang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Maru-zhang/MARNetwork.git",
        "tag": "0.2.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "MARNetwork/Classes/**/*",
    "dependencies": {
        "AFNetworking": [
            "~> 3.1.0"
        ],
        "ReactiveObjC": [
            "~> 2.1.2"
        ]
    }
}

Pin It on Pinterest

Share This