发布于 2016-06-21 23:49:50 | 304 次阅读 | 评论: 0 | 来源: 网友投递
Retrofit REST 客户端
retrofit 是一个类型安全的 REST 客户端,用于 Android 平台。
Retrofit 2.1.0 发布了,
改进日志如下:
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
.
下载地址: