Streamed

play.api.http.HttpEntity.Streamed
final case class Streamed(data: Source[ByteString, _], contentLength: Option[Long], contentType: Option[String]) extends HttpEntity

A streamed entity.

Value parameters

contentLength

The content length, if known. If no content length is set, then this entity will be close delimited.

contentType

The content type, if known.

data

The stream of data for this entity.

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 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