From 0d6e5f2c4d1cf12531f97e9f1d874dddf080b385 Mon Sep 17 00:00:00 2001 From: Ryan Bergman Date: Thu, 6 Jan 2022 08:19:29 -0600 Subject: [PATCH] issue #421 update docs --- .../main/java/kong/unirest/HttpRequestWithBody.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unirest/src/main/java/kong/unirest/HttpRequestWithBody.java b/unirest/src/main/java/kong/unirest/HttpRequestWithBody.java index 666d0494..dd337cc5 100644 --- a/unirest/src/main/java/kong/unirest/HttpRequestWithBody.java +++ b/unirest/src/main/java/kong/unirest/HttpRequestWithBody.java @@ -135,14 +135,14 @@ default HttpRequestWithBody noCharset() { /** * Set a String as the body of the request * @param body the String - * @return this request builder + * @return a RequestBodyEntity version of the builder with a body */ RequestBodyEntity body(String body); /** * Set a InputStream as the body * @param body the Object - * @return this request builder + * @return a RequestBodyEntity version of the builder with a body */ RequestBodyEntity body(InputStream body); @@ -152,28 +152,28 @@ default HttpRequestWithBody noCharset() { * - JSONElements use their native toString * - Everything else will pass through the supplied ObjectMapper * @param body the Object - * @return this request builder + * @return a RequestBodyEntity version of the builder with a body */ RequestBodyEntity body(Object body); /** * Set a byte array as the body of the request * @param body the byte[] - * @return this request builder + * @return a RequestBodyEntity version of the builder with a body */ RequestBodyEntity body(byte[] body); /** * Set JSON on the body * @param body the JsonNode - * @return this request builder + * @return a RequestBodyEntity version of the builder with a body */ RequestBodyEntity body(JsonNode body); /** * Set JSON on the body * @param body the JSONElement - * @return this request builder + * @return a RequestBodyEntity version of the builder with a body */ RequestBodyEntity body(JSONElement body);