基于kotlin/coroutine/retrofit/jetpack打造,100来行代码,用法超级简单舒适设置默认Retrofit工厂和全局错误处理程序HttpCall.init(retrofitFactory={//...},errorHandler={throwable->//...})基本用法dataclassReault(valdata:String)interfaceTestService{@GET("test")funtest():Call<Reault>}//在activity/fragment中使用,获取请求结果http<TestService>().test().result(this){//it是...
继续阅读 >