- New: Converter module for SimpleXML.
- New: Mock module which allows simulating real network behavior for local service interface implementations. See 'mock-github-client' example for a demo.
- New: RxJava
Observablesupport! Declare a return type ofObservable<Foo>on your service interfaces to automatically get an observable for that request. (Experimental API) - Fix: Use
ObjectMapper's type factory when deserializing (Jackson converter). - Multipart POST requests now stream their individual part bodies.
- Log chunking to 4000 characters now only happens on the Android platform.
- Fix: Respect connection and read timeouts on supplied
OkHttpClientinstances. - Fix: Ensure connection is closed on non-200 responses.
- New: Converter for Wire protocol buffers!
- New: Additional first-party converters for Jackson and Protocol Buffers! These are provided
as separate modules that you can include and pass to
RestAdapter.Builder'ssetConverter. - New:
@EncodedPathand@EncodedQueryannotations allow provided path and query params that are already URL-encoded. - New:
@PATCHHTTP method annotation. - Fix: Properly support custom HTTP method annotations in
UrlConnectionClient. - Fix: Apply
RequestInterceptorduring method invocation rather than at request execution time. - Change
setDebugtosetLogLevelonRestAdapterandRestAdapter.Builderand provide two levels of logging viaLogLevel. - Query parameters can now be added in a request interceptor.
- Fix: Ensure
@Headers-defined headers are correctly added to requests. - Fix: Supply reasonable connection and read timeouts for default clients.
- Fix: Allow passing
nullfor a@Part-annotated argument to remove it from the multipart request body.
- Introduce
RequestInterceptorto replaceRequestHeaders. An interceptor provided to theRestAdapter.Builderwill be called for every request and allow setting both headers and additional path parameter replacements. - Add
ErrorHandlerfor customizing the exceptions which are thrown when synchronous methods return non-200 error codes. - Properly parse responses which erroneously omit the "Content-Type" header.
- Allow uppercase letters in path replacement identifiers.
- Fix: Static query parameters in the URL are now correctly appended with a separating '?'.
- Fix: Explicitly allow or forbid
nullas a value for method parameters.@Path- Forbidden@Query- Allowed@Field- Allowed@Part- Forbidden@Body- Forbidden@Header- Allowed
- Fix: Correct bad regex behavior on Android.
Initial release.