rxjava+retrofit+okhttp 缓存demo

Autumn。 38 0 rar 2018-12-17 20:12:52

rxjava+okhttp+retrofit 通过get方法对请求网络的数据进行缓存的处理。(特别注意就是断网没有缓存okhttp返回 504错误,rxjava 必须在subscribe 方法中 new Action1() 对异常进行处理,否则必蹦)

用户评论
请输入评论内容
评分:
暂无评论