Strict

play.api.http.HttpEntity.Strict
final case class Strict(data: ByteString, contentType: Option[String]) extends HttpEntity

A strict entity.

Strict entities are contained entirely in memory.

Value parameters

contentType

The content type, if known.

data

The data contained within 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

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

Consume the data from this entity.

Consume the data from this entity.

Attributes

Definition Classes

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

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product