From de806c84c16ff2be965c27f9c00e185fb4ae2426 Mon Sep 17 00:00:00 2001 From: Artem Zinnatullin Date: Thu, 31 Mar 2016 20:21:24 +0300 Subject: [PATCH] Add javadoc for Response.body() --- okhttp/src/main/java/okhttp3/Response.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/okhttp/src/main/java/okhttp3/Response.java b/okhttp/src/main/java/okhttp3/Response.java index 7a2d717e22a6..7a3d80264b91 100644 --- a/okhttp/src/main/java/okhttp3/Response.java +++ b/okhttp/src/main/java/okhttp3/Response.java @@ -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; }