Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/53ningen/rxhttp
http client implementation using RxSwift and RxCocoa
https://github.com/53ningen/rxhttp
Last synced: 7 days ago
JSON representation
http client implementation using RxSwift and RxCocoa
- Host: GitHub
- URL: https://github.com/53ningen/rxhttp
- Owner: 53ningen
- License: other
- Created: 2015-11-07T09:41:48.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2016-01-08T18:28:03.000Z (about 9 years ago)
- Last Synced: 2024-11-14T03:49:25.368Z (2 months ago)
- Language: Swift
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
RxHttp
===============http client implementation using RxSwift and RxCocoa
This software is released under the MIT License, see LICENSE
## Usage
```swift
let disposeBag = DisposeBag()
let client = DefaultRxHttpClient(defaultTimeoutSec: 5)
client.get(NSURL(string: "http://gochiusa.com")!, parameters: nil, headers: nil)
.observeOn(MainScheduler.sharedInstance)
.subscribeNext({ (data, response) -> Void in
//...do something
})
.addDisposableTo(disposeBag)
```