From e121f7ecd462c5fd58a37d13b8b7b8f187a2cb74 Mon Sep 17 00:00:00 2001 From: Arjen Poutsma Date: Thu, 29 Oct 2015 16:44:13 +0100 Subject: [PATCH] Improved documentation on setBody() --- .../springframework/http/ReactiveHttpOutputMessage.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java b/spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java index 13e2b6d8e7..674268f6cd 100644 --- a/spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java +++ b/spring-web-reactive/src/main/java/org/springframework/http/ReactiveHttpOutputMessage.java @@ -31,9 +31,11 @@ import org.reactivestreams.Publisher; public interface ReactiveHttpOutputMessage extends HttpMessage { /** - * Adds the given publisher of {@link ByteBuffer}s as a body. A HTTP/1.1 message has - * one body, but HTTP/1.2 supports multiple bodies. - * @param body the body to add + * Sets the body of this message to the given publisher of {@link ByteBuffer}s. The + * publisher will be used to write to the underlying HTTP layer with asynchronously, + * given pull demand by this layer. + * + * @param body the body to use * @return a publisher that indicates completion */ Publisher setBody(Publisher body);