Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
wd1105040417
retrofit
提交
9885c9d7
R
retrofit
项目概览
wd1105040417
/
retrofit
与 Fork 源项目一致
从无法访问的项目Fork
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
retrofit
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9885c9d7
编写于
9月 28, 2015
作者:
J
Jake Wharton
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prepare for 2.0.0-beta2.
上级
f45de6c5
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
34 addition
and
2 deletion
+34
-2
CHANGELOG.md
CHANGELOG.md
+32
-0
README.md
README.md
+2
-2
未找到文件。
CHANGELOG.md
浏览文件 @
9885c9d7
Change Log
==========
Version 2.0.0-beta2 *(2015-09-28)*
----------------------------------
*
New: Using a response type of
`Void`
(e.g.,
`Call<Void>`
) will ignore and discard the response body. This
can be used when there will be no response body (such as in a 201 response) or whenever the body is not
needed.
`@Head`
requests are now forced to use this as their response type.
*
New:
`validateEagerly()`
method on
`Retrofit.Builder`
will verify the correctness of all service methods
on calls to
`create()`
instead of lazily validating on first use.
*
New:
`Converter`
is now parameterized over both 'from' and 'to' types with a single
`convert`
method.
`Converter.Factory`
is now an abstract class and has factory methods for both request body and response
body.
*
New:
`Converter.Factory`
and
`CallAdapter.Factory`
now receive the method annotations when being created
for a return/response type and the parameter annotations when being created for a parameter type.
*
New:
`callAdapter()`
method on
`Retrofit`
allows querying a
`CallAdapter`
for a given type. The
`nextCallAdapter()`
method allows delegating to another
`CallAdapter`
from within a
`CallAdapter.Factory`
.
This is useful for composing call adapters to incrementally build up behavior.
*
New:
`requestConverter()`
and
`responseConverter()`
methods on
`Retrofit`
allow querying a
`Converter`
for
a given type.
*
New:
`onResponse`
method in
`Callback`
now receives the
`Retrofit`
instance. Combined with the
`responseConverter()`
method on
`Retrofit`
, this provides a way of deserializing an error body on
`Response`
.
See the
`DeserializeErrorBody`
sample for an example.
*
New: The
`MoshiConverterFactory`
has been updated for its v1.0.0.
*
Fix: Using
`ResponseBody`
for the response type or
`RequestBody`
for a parameter type is now correctly
identified. Previously these types would erroneously be passed to the supplied converter.
*
Fix: The encoding of
`@Path`
values has been corrected to conform to OkHttp's
`HttpUrl`
.
*
Fix: Use form-data content disposition subtype for
`@Multipart`
.
*
Fix:
`Observable`
and
`Single`
-based execution of requests now behave synchronously (and thus requires
`subscribeOn()`
for running in the background).
*
Fix: Correct
`GsonConverterFactory`
to honor the configuration of the
`Gson`
instances (such as not
serializing null values, the default).
Version 2.0.0-beta1 *(2015-08-27)*
----------------------------------
...
...
README.md
浏览文件 @
9885c9d7
...
...
@@ -14,12 +14,12 @@ Download [the latest JAR][2] or grab via Maven:
<dependency>
<groupId>
com.squareup.retrofit
</groupId>
<artifactId>
retrofit
</artifactId>
<version>
2.0.0-beta
1
</version>
<version>
2.0.0-beta
2
</version>
</dependency>
```
or Gradle:
```
groovy
compile
'com.squareup.retrofit:retrofit:2.0.0-beta
1
'
compile
'com.squareup.retrofit:retrofit:2.0.0-beta
2
'
```
Snapshots of the development version are available in
[
Sonatype's `snapshots` repository
][
snap
]
.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录