Latest 1.0.1
Homepage https://github.com/ibnusina/ReactiveAFNetworking
License MIT
Platforms ios 8.0
Dependencies AFNetworking, ReactiveObjC
Authors

CI Status
Version
License
Platform

ReactiveAFNetworking is an extension of AFNetworking 3 by adding reactive capability, inpired by
AFNetworking-RACExtension which still use AFNetworking 2.
This library is build on top of
AFNetworking 3.0+ and
ReactiveObjC,
so if you want to use the same code interface as
AFNetworking-RACExtension
but need the latest version of AFNetworking and ReactiveObjC please feel free to use ReactiveAFNetworking.

Installation

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

pod 'ReactiveAFNetworking'

Usage

Request signals work in much the same way you would expect them to. Any request that is subscribed to is automatically enqueued and the results, be they errors or JSON, are sent back to you the subscriber. For example

AFHTTPSessionManager *sessionManager = [AFHTTPSessionManager manager];
RACSignal *signal = [sessionManager rac_GET:@"https://api.reddit.com/r/cat/hot" parameters:nil];
[signal subscribeNext:^(RACTuple *tuple) {
        NSLog(@"response: %@, task: %@", tuple.second, tuple.first);
    } error:^(NSError * error) {
        NSLog(@"on error: %@", error);
    }];

Example

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

Requirements

ReactiveAFNetworking support iOS 8.0+.

Author

Ibnu Sina: [email protected]

License

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

Latest podspec

{
    "name": "ReactiveAFNetworking",
    "version": "1.0.1",
    "summary": "Wrapping AFNetworking with ReactiveObjC",
    "description": "Using AFNetworking 3 and update ReactiveObjc, hopefully will become replacement for popular AFNetworking+RACExtension",
    "homepage": "https://github.com/ibnusina/ReactiveAFNetworking",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Ibnu Sina": "[email protected]"
    },
    "source": {
        "git": "https://github.com/ibnusina/ReactiveAFNetworking.git",
        "tag": "1.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ReactiveAFNetworking/Classes/**/*",
    "public_header_files": "ReactiveAFNetworking/Classes/*.h",
    "dependencies": {
        "AFNetworking": [
            "~> 3"
        ],
        "ReactiveObjC": [
            ">= 1"
        ]
    }
}

Pin It on Pinterest

Share This