Retrofit 2.4.0 发布,Android 的 REST 客户端

栏目: 软件资讯 · 发布时间: 7年前

内容简介:Retrofit 2.4.0 已发布,Retrofit 是一个类型安全的 REST 客户端,用于 Android 平台。该版本引入了一些新特性,以及修复 bug。 更新内容 New: Retrofit.Builder exposes mutable lists of the added converte...

Retrofit 2.4.0 已发布,Retrofit 是一个类型安全的 REST 客户端,用于 Android 平台。该版本引入了一些新特性,以及修复 bug。

更新内容

  • New: Retrofit.Builder exposes mutable lists of the added converter and call adapter factories.

  • New: Call adapter added for Scala's Future.

  • New: Converter for JAXB replaces the now-deprecated converter for Simple XML Framework.

  • New: Add Java 9 automatic module names for each artifact corresponding to their root package.

  • Fix: Do not swallow Errors from callbacks (usually OutOfMemoryError).

  • Fix: Moshi and Gson converters now assert that the full response was consumed. This prevents hiding bugs in faulty adapters which might not have consumed the full JSON input which would then cause failures on the next request over that connection.

  • Fix: Do not conflate OkHttp Call cancelation with RxJava unsubscription/disposal. Prior to this change, canceling of a Call would prevent a cancelation exception from propagating down the Rx stream.

源码下载:https://github.com/square/retrofit/releases/tag/parent-2.4.0


【声明】文章转载自:开源中国社区 [http://www.oschina.net]


以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

Qt 5.9 C++开发指南

Qt 5.9 C++开发指南

王维波、栗宝鹃、侯春望 / 人民邮电出版社 / 2018-5-1 / 89.00元

本书以Qt 5.9 LTS版本为开发平台,详细介绍了Qt C++开发应用程序的技术,包括Qt应用程序的基本架构、信号与槽工作机制、图形显示的Graphics/View架构、数据编辑和显示的Model/View架构、对话框和多窗口的设计与调用方法等,介绍了常用界面组件、文件读写、绘图、图表、数据可视化、数据库、多线程、网络和多媒体等模块的使用。每个编程主题都精心设计了完整的实例程序。 通过阅读......一起来看看 《Qt 5.9 C++开发指南》 这本书的介绍吧!

RGB转16进制工具
RGB转16进制工具

RGB HEX 互转工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具