Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add javadoc for Response.body() #2454

Merged
merged 1 commit into from
Apr 1, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Add javadoc for Response.body()
  • Loading branch information
artem-zinnatullin committed Mar 31, 2016
commit de806c84c16ff2be965c27f9c00e185fb4ae2426
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