Chunked

play.api.http.HttpEntity.Chunked
final case class Chunked(chunks: Source[HttpChunk, _], contentType: Option[String]) extends HttpEntity

A chunked entity.

Value parameters

chunks

The stream of chunks for this entity. Must be zero or more HttpChunk.Chunk elements, followed by zero or one HttpChunk.LastChunk elements. Any elements after the HttpChunk.LastChunk element will be ignored. If no HttpChunk.LastChunk element is sent, then the last chunk will contain no trailers.

contentType

The content type, if known.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait HttpEntity
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def as(contentType: String): HttpEntity

Return this entity as the given content type.

Return this entity as the given content type.

Attributes

def asJava: HttpEntity

Convert this entity to its Java counterpart.

Convert this entity to its Java counterpart.

Attributes

The content length of the entity, if known.

The content length of the entity, if known.

Attributes

The entity as a data stream.

The entity as a data stream.

Attributes

Whether it is known if this entity is empty or not.

Whether it is known if this entity is empty or not.

If this returns true, then the entity is definitely empty. If it returns false, the entity may or may not be empty.

Attributes

Inherited methods

def consumeData(implicit mat: Materializer): Future[ByteString]

Consume the data from this entity.

Consume the data from this entity.

Attributes

Inherited from:
HttpEntity

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product