Package play.http
Class HttpEntity.Chunked
java.lang.Object
play.http.HttpEntity
play.http.HttpEntity.Chunked
- Enclosing class:
- HttpEntity
A chunked entity, backed by a source of chunks.
-
Nested Class Summary
Nested classes/interfaces inherited from class play.http.HttpEntity
HttpEntity.Chunked, HttpEntity.Streamed, HttpEntity.Strict -
Field Summary
Fields inherited from class play.http.HttpEntity
NO_ENTITY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionplay.api.http.HttpEntityasScala()Source<play.api.http.HttpChunk,?> chunks()Source<ByteString,?> booleanMethods inherited from class play.http.HttpEntity
chunked, consumeData, fromContent, fromString
-
Constructor Details
-
Chunked
-
-
Method Details
-
chunks
-
contentType
- Specified by:
contentTypein classHttpEntity- Returns:
- The content type, if defined
-
isKnownEmpty
public boolean isKnownEmpty()- Specified by:
isKnownEmptyin classHttpEntity- Returns:
- Whether the entity is known to be empty or not.
-
contentLength
- Specified by:
contentLengthin classHttpEntity- Returns:
- The content length, if known
-
as
- Specified by:
asin classHttpEntity- Parameters:
contentType- the content type to use, i.e. "text/html".- Returns:
- Return the entity as the given content type.
-
dataStream
- Specified by:
dataStreamin classHttpEntity- Returns:
- The stream of data.
-
asScala
public play.api.http.HttpEntity asScala()- Specified by:
asScalain classHttpEntity
-