Skip to content

Commit

Permalink
issue #421 update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ryber committed Jan 6, 2022
1 parent 1205b6b commit 0d6e5f2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions unirest/src/main/java/kong/unirest/HttpRequestWithBody.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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);

Expand Down

0 comments on commit 0d6e5f2

Please sign in to comment.