public interface RequestBody
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
contentEncoding()
Retrieve the character encoding for the request.
|
MediaType |
contentType()
Get the
Content-Type of the message body, including charset. |
long |
length()
Get the
Content-Length of the message body, if the length is unknown, return a negative value. |
java.io.InputStream |
stream()
Returns a content stream of this body.
|
java.lang.String |
string()
Convert the request body to a String.
|
java.lang.String contentEncoding()
long length()
Content-Length of the message body, if the length is unknown, return a negative value.MediaType contentType()
Content-Type of the message body, including charset.application/json; charset=utf-8, or null if the content type is unknown.java.io.InputStream stream()
throws java.io.IOException
java.io.IOException - if the stream could not be created.java.lang.String string()
throws java.io.IOException
java.io.IOException - if the stream could not be created.