All Projects → Commit451 → ehhttp

Commit451 / ehhttp

Licence: Apache-2.0 license
OkHttp calls as RxJava types

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to ehhttp

iMoney
iMoney 金融项目
Stars: ✭ 55 (+189.47%)
Mutual labels:  rxjava, okhttp
BaseDevelop
an android project for now fashion open source framework
Stars: ✭ 24 (+26.32%)
Mutual labels:  rxjava, okhttp
Android Okgraphql
Reactive GraphQl client for Android
Stars: ✭ 64 (+236.84%)
Mutual labels:  rxjava, okhttp
Meteorite
一个基于Android MVP的简单明了的指引性通用架构,目的是帮助更多的开发者去全面了解实践开发相关的各种技术,快速搭建属于自已的APP。这个项目涉及到如下技术的实际应用:1、MVP 2、网络请求(Novate基于rxjava,okhttp,retrofit封装架构)3、DbFlow(可保存文件入SD卡) 4、6.0权限申请 5、XRecyclerView 6、万能Adapter7、异常处理 8、日志打印 9、屏幕适配 10、代码混淆 11、多渠道打包 12、内存泄露检测 13、热修复 14、升级更新 15、极光推送 工程更新完善中……欢迎关注 @特别感谢ZJ.Y的Logo支持。
Stars: ✭ 49 (+157.89%)
Mutual labels:  rxjava, okhttp
Retrofitrxjavademo
Retrofit+Rxjava + OkHttp 封装简易网络请求库,附有demo 示例
Stars: ✭ 160 (+742.11%)
Mutual labels:  rxjava, okhttp
Ticket Analysis
移动端的彩票开奖查询系统
Stars: ✭ 61 (+221.05%)
Mutual labels:  rxjava, okhttp
Okhttp Okgo
OkGo - 3.0 震撼来袭,该库是基于 Http 协议,封装了 OkHttp 的网络请求框架,比 Retrofit 更简单易用,支持 RxJava,RxJava2,支持自定义缓存,支持批量断点下载管理和批量上传管理功能
Stars: ✭ 10,407 (+54673.68%)
Mutual labels:  rxjava, okhttp
Mvvmhabitcomponent
👕基于MVVMHabit框架,结合阿里ARouter打造的一套Android MVVM组件化开发方案
Stars: ✭ 857 (+4410.53%)
Mutual labels:  rxjava, okhttp
Dagger2
Kotlin Dagger2 example project
Stars: ✭ 145 (+663.16%)
Mutual labels:  rxjava, okhttp
Android Base Mvp
Android Base MVP Concept with RXJava, Dagger, Event Bus, Retrofit, Glide, OkHTTP
Stars: ✭ 141 (+642.11%)
Mutual labels:  rxjava, okhttp
Weaponapp
一个尽量做到极致的集大成App,努力做到最好(开发阶段)——MVVM+Retrofit+RxJava+Small 插件化+单元测试+MD
Stars: ✭ 1,011 (+5221.05%)
Mutual labels:  rxjava, okhttp
Nohttprxutils
🐠 本库是一款Android-Http标准协议网络通讯框架,基于RxJava+NoHttp封装。支持文件上传和断点续传、文件下载和断点下载、Http协议和Https协议队列网络请求、网络请求轮询。
Stars: ✭ 214 (+1026.32%)
Mutual labels:  rxjava, okhttp
Awesome Third Library Source Analysis
📖 Deep understanding of popular open source library source code (optimizing...)
Stars: ✭ 866 (+4457.89%)
Mutual labels:  rxjava, okhttp
RxHttp
基于RxJava2+Retrofit+OkHttp4.x封装的网络请求类库,亮点多多,完美兼容MVVM(ViewModel,LiveData),天生支持网络请求和生命周期绑定,天生支持多BaseUrl,支持文件上传下载进度监听,支持断点下载,支持Glide和网络请求公用一个OkHttpClient⭐⭐⭐
Stars: ✭ 25 (+31.58%)
Mutual labels:  rxjava, okhttp
Kotlin Life
App界的一股清流 音视频vr应有尽有 完全按照Material design规范设计的App (written with java and Kotlin)
Stars: ✭ 864 (+4447.37%)
Mutual labels:  rxjava, okhttp
Mvpframes
整合大量主流开源项目并且可高度配置化的 Android MVP 快速集成框架,支持 AndroidX
Stars: ✭ 100 (+426.32%)
Mutual labels:  rxjava, okhttp
Mvvmhabit
goldze: 本人喜欢尝试新的技术,以后发现有好用的东西,我将会在企业项目中实战,没有问题了就会把它引入到MVVMHabit中,一直维护着这套框架,谢谢各位朋友的支持。如果觉得这套框架不错的话,麻烦点个 star,你的支持则是我前进的动力!
Stars: ✭ 6,789 (+35631.58%)
Mutual labels:  rxjava, okhttp
Androidall
Android 程序员需要掌握的技术栈:数据结构算法、程序架构、设计模式、性能优化、插件化、热更新、Kotlin、NDK、Jetpack,以及常用的开源框架源码分析如 Flutter、Router、RxJava、Glide、LeakCanary、Dagger2、Retrofit、OkHttp、ButterKnife 等
Stars: ✭ 849 (+4368.42%)
Mutual labels:  rxjava, okhttp
Kingtv
📺 高仿全民直播(全民TV),项目采用 MVP + RXJava + Retrofit + OKHttp + Material Design + Dagger2 + Base + Glide + GreenDao构建。因为全民TV已经凉了,导致App已经连不上。所以本项目已暂停维护。仅供学习。 推荐MVPFrame: https://github.com/jenly1314/MVPFrame 和你值得拥有的MVVMFrame快速开发框架: https://github.com/jenly1314/MVVMFrame
Stars: ✭ 1,594 (+8289.47%)
Mutual labels:  rxjava, okhttp
Javawebsocketclient
RxJava WebSocket library for Java and Android
Stars: ✭ 188 (+889.47%)
Mutual labels:  rxjava, okhttp

ehHttp

OkHttp, eh? Converts OkHttp Calls to RxJava types

Maven Central

Gradle

dependencies {
    implementation("com.commit451:ehhttp:latest.release.here")
}

Usage

You convert calls to the desired RxJava types:

val client = OkHttpClient.Builder()
    .build()

val request = Request.Builder()
    .url("http://www.example.com")
    .build()

val call = client.newCall(request)
// Observable
val observable = call.toObservable()
// Single
val single = call.toSingle()
// Flowable
val flowable = call.toFlowable()
// Completable
val completable = call.toCompletable()

If you need to, you can also call from Java:

Single<Response> single = EhHttp.toSingle(call);

Supported types

  • Observable: toObservable()
  • Single: toSingle()
  • Flowable: toFlowable() with BackpressureStrategy.LATEST
  • Completable: toCompletable() which throws HttpException if HTTP error

Acknowledgements

HttpException and CallObservable modified from Retrofit. Thanks to Square for being awesome.

License

Copyright 2022 Commit 451

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].