public interface HttpRequestEntity
| Modifier and Type | Method and Description |
|---|---|
org.dmfs.jems.optional.Optional<java.lang.Long> |
contentLength()
Returns the length of the content, if known.
|
org.dmfs.jems.optional.Optional<MediaType> |
contentType()
Returns the
MediaType of the entity, if known. |
void |
writeContent(java.io.OutputStream out)
Writes the content to the given
OutputStream. |
org.dmfs.jems.optional.Optional<MediaType> contentType()
MediaType of the entity, if known.Optional content MediaType.org.dmfs.jems.optional.Optional<java.lang.Long> contentLength()
Optional content length.void writeContent(java.io.OutputStream out)
throws java.io.IOException
OutputStream. Note that the stream is property of the caller and must not be closed by this method.out - The OutputStream to write to.java.io.IOException