public static final class HttpEntity.Chunked extends HttpEntity
HttpEntity.Chunked, HttpEntity.Streamed, HttpEntity.StrictNO_ENTITY| Constructor and Description |
|---|
Chunked(akka.stream.javadsl.Source<play.api.http.HttpChunk,?> chunks,
java.util.Optional<java.lang.String> contentType) |
| Modifier and Type | Method and Description |
|---|---|
HttpEntity |
as(java.lang.String contentType) |
play.api.http.HttpEntity |
asScala() |
akka.stream.javadsl.Source<play.api.http.HttpChunk,?> |
chunks() |
java.util.Optional<java.lang.Long> |
contentLength() |
java.util.Optional<java.lang.String> |
contentType() |
akka.stream.javadsl.Source<akka.util.ByteString,?> |
dataStream() |
boolean |
isKnownEmpty() |
chunked, consumeData, fromContent, fromStringpublic Chunked(akka.stream.javadsl.Source<play.api.http.HttpChunk,?> chunks,
java.util.Optional<java.lang.String> contentType)
public akka.stream.javadsl.Source<play.api.http.HttpChunk,?> chunks()
public java.util.Optional<java.lang.String> contentType()
contentType in class HttpEntitypublic boolean isKnownEmpty()
isKnownEmpty in class HttpEntitypublic java.util.Optional<java.lang.Long> contentLength()
contentLength in class HttpEntitypublic HttpEntity as(java.lang.String contentType)
as in class HttpEntitycontentType - the content type to use, i.e. "text/html".public akka.stream.javadsl.Source<akka.util.ByteString,?> dataStream()
dataStream in class HttpEntitypublic play.api.http.HttpEntity asScala()
asScala in class HttpEntity