rxhttp icon indicating copy to clipboard operation
rxhttp copied to clipboard

🔥🔥🔥 Based on OkHttp encapsulation, support Kotlin Coroutines、RxJava2、RxJava3; 30s to get started.

Results 36 rxhttp issues
Sort by recently updated
recently updated
newest added

https://github.com/Kotlin/kotlinx.serialization

C:/Users/����/.gradle/caches/modules-2/files-2.1/com.github.liujingxing.rxhttp/rxhttp/2.9.3/8451a7f1d7e65c8f25824c3ea0741f68de5555a6/rxhttp-2.9.3.jar!/META-INF/rxhttp.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.7.1, expected version is 1.5.1. 您好,大佬,请问是还没适配到最新版吗,最近在用这个库写compose demo,发现这个build报错

无法上传超大文件 ``` 2022-09-10 16:29:27.014 6048-6289/dtdsn.nas I/System.out: [java.net.SocketException: Broken pipe, java.net.SocketException: Broken pipe] 2022-09-10 16:29:27.019 6048-6289/dtdsn.nas W/System.err: java.net.SocketException: Broken pipe 2022-09-10 16:29:27.019 6048-6289/dtdsn.nas W/System.err: at java.net.SocketOutputStream.socketWrite0(Native Method) 2022-09-10 16:29:27.019 6048-6289/dtdsn.nas W/System.err:...

服务器接收 body为from-data 的请求参数,请问该库支持 kotlin data 数据类型转 pageNo=1&pageSize=10 这种请求参数格式吗?目前支持转json,暂未满足实际需求

我的是纯java 项目 ![image](https://github.com/liujingxing/rxhttp/assets/50619076/b631eea5-e3b5-41be-9ea7-c2c51df4de6e) ![image](https://github.com/liujingxing/rxhttp/assets/50619076/5f8309b8-ee8d-4f5a-a13b-cd169d699e24) 试了很久还是找不到RxHttp类 我不知道哪里少了什么,能帮我看看吗

按照提供的例子写的TokenInterceptor,调用刷新接口的时候不知道为什么一直死循环请求,不执行后续操作

最近项目需要,要将项目的依赖更新一波,其中rxhttp从2.2.x版本更新到2.9.5,其中rxLife中最显著的变化有这几点 > 为啥被废弃? > 1、同一个FragmentActivity/Fragment下,rxLifeScope与lifecycleScope不能共用;同一个ViewModel下,rxLifeScope与viewModelScope不能共用 > 2、配合RxHttp发请求时,每次都要开启一个协程来捕获异常,这对于再次封装的人,非常不友好; 目前RxHttp的awaitResult操作符一样可以捕获异常,所以rxLifeScope就没了用武之地,是时候退出历史舞台了 > 3、不能同lifecycleScope或viewModelScope一样,开启协程时,传入CoroutineContext或CoroutineStart参数 亦没有一系列launchXxx方法 > 4、rxLifeScope配合RxHttp v2.6.6及以上版本发请求时,调用async方法将导致请求结束回调不被调用 其中第4点就影响到原本的项目代码,如下,其中execute是新扩展增加全局业务异常的捕获,其实就是launch方法的二次封装,在2.2.x的版本还正常使用,更新后确实因为几个方法都是用了async的方法,导致没有返回。也将 rxLifeScope 换为 lifecycleScope 试过,问题依旧。 想知道这个具体原因的本质是什么引起的,要继续使用项目当下的这种代码形式又需要做什么改变?望指教 ```kotlin fun refreshContent() { rxLifeScope.execute({ //先读取缓存数据用于展示 getWarningCardInfo(true) getDataModuleList(homeModuleAdapter, true) //真实请求获取最新数据...

RxHttp 版本 v3.2.0 通过`android.enableR8.fullMode=true`开启R8完整模式,或将`AGP`升级至8.0及以上版本,将默认开启完整模式,此时执行以下代码,将发生闪退 ```kotlin RxHttp.get("...") .toXxx(object: SmartParser(){}) //通过匿名内部类,创建任意继承TypeParser的类 ... ``` 闪退日志 ```xml java.lang.RuntimeException: Missing type parameter. at rxhttp.wrapper.utils.TypeUtil.getActualTypeParameters(TypeUtil.java:23) at rxhttp.wrapper.parse.TypeParser.(TypeParser.java:18) at com.example.httpsender.parser.ResponseParser.(ResponseParser.kt:32) ```