Skip to content

Commit

Permalink
Add javadoc for Response.body()
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-zinnatullin committed Mar 31, 2016
1 parent f25858c commit de806c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions okhttp/src/main/java/okhttp3/Response.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ public ResponseBody peekBody(long byteCount) throws IOException {
return ResponseBody.create(body.contentType(), result.size(), result);
}

/**
* Never {@code null}, must be closed after consumption, can be consumed only once.
*/
public ResponseBody body() {
return body;
}
Expand Down

0 comments on commit de806c8

Please sign in to comment.