retrofit v2.1.0 Release Notes

Release Date: 2016-06-15 // over 3 years ago
    • 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.