Skip to content

Commit c889818

Browse files
committed
deprecate HttpResult.Body.getType()
1 parent a3b2ed0 commit c889818

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

okhttps/src/main/java/com/ejlchina/okhttps/HttpResult.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,11 @@ interface Body extends Toable {
9393
/**
9494
* @return 媒体类型
9595
*/
96+
@Deprecated
9697
MediaType getType();
9798

9899
/**
100+
* 依赖于 Content-Length 响应头
99101
* @return 报文体字节长度
100102
*/
101103
long getLength();

0 commit comments

Comments
 (0)