红联Linux门户
Linux帮助

Retrofit 2.1.0发布,Android的REST客户端

发布时间:2016-06-22 09:30:41来源:红联作者:baihuo
Retrofit 2.1.0 发布了,retrofit 是一个类型安全的 REST 客户端,用于 Android 平台。

改进日志如下:

New: @HeaderMap annotation and support for supplying an arbitrary number of headers to an endpoint.

New: @JsonAdapter annotations on the @Body parameter and on the method will be propagated to Moshi for creating the request and response adapters, respectively.

Fix: Honor the Content-Type encoding of XML responses when deserializing response bodies.

Fix: Remove the stacktrace from fake network exceptions created from retrofit-mock's NetworkBehavior. They had the potential to be misleading and look like a library issue.

Fix: Eagerly catch malformed Content-Type headers supplied via @Header or @Headers.

下载地址:https://github.com/square/retrofit/archive/parent-2.1.0.tar.gz

来自:开源中国社区
文章评论

共有 0 条评论