Skip to content

Commit

Permalink
Merge pull request square#2454 from artem-zinnatullin/response-body-j…
Browse files Browse the repository at this point in the history
…avadoc

Add javadoc for Response.body()
  • Loading branch information
swankjesse committed Apr 1, 2016
2 parents f25858c + de806c8 commit 837dc04
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 837dc04

Please sign in to comment.