Latest 0.2.2
Homepage https://github.com/Ginxx/RxNetwork
License MIT
Platforms ios 9.0, requires ARC
Dependencies Moya/RxSwift, Cache
Authors

CI Status
Version
License
Platform

Example

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

Requirements

Installation

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

pod 'RxNetwork'

Usage

Import

import RxNetwork

Configure

Request with cache

TestTarget.test(count: 10)
    .onCache([TestModel].self, { (response) in

    })
    .request([TestModel].self, atKeyPath: "result")
    .subscribe(onSuccess: { (response) in

    })
    .disposed(by: disposeBag)
// or
TestTarget.test(count: 10)
    .cache
    .request([TestModel].self, atKeyPath: "result")
    .subscribe(onNext: { (response) in

    })
    .disposed(by: disposeBag)

Request without cache

TestTarget.test(count: 10)
    .request([TestModel].self, atKeyPath: "result")
    .subscribe(onSuccess: { (response) in

    })
    .disposed(by: disposeBag)

Author

gaoX, [email protected]

License

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

Latest podspec

{
    "name": "RxNetwork",
    "version": "0.2.2",
    "summary": "A swift network library.",
    "description": "TODO: Add long description of the pod here.",
    "homepage": "https://github.com/Ginxx/RxNetwork",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "gaoX": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Ginxx/RxNetwork.git",
        "tag": "0.2.2"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "RxNetwork/Classes/**/*",
    "dependencies": {
        "Moya/RxSwift": [],
        "Cache": []
    },
    "requires_arc": true,
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This