HttpEntity

play.api.http.HttpEntity
See theHttpEntity companion trait
object HttpEntity

Attributes

Companion
trait
Graph
Supertypes
trait Sum
trait Mirror
class Object
trait Matchable
class Any
Self type
HttpEntity.type

Members list

Type members

Classlikes

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

A chunked entity.

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

Supertypes
trait Serializable
trait Product
trait Equals
trait HttpEntity
class Object
trait Matchable
class Any
Show all
final case class Streamed(data: Source[ByteString, _], contentLength: Option[Long], contentType: Option[String]) extends HttpEntity

A streamed entity.

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

Supertypes
trait Serializable
trait Product
trait Equals
trait HttpEntity
class Object
trait Matchable
class Any
Show all
final case class Strict(data: ByteString, contentType: Option[String]) extends HttpEntity

A strict entity.

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

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

Inherited and Abstract types

The names of the product elements

The names of the product elements

Attributes

Inherited from:
Mirror

The name of the type

The name of the type

Attributes

Inherited from:
Mirror

Value members

Concrete fields

No entity.

No entity.

Attributes