Packages

sealed trait HttpEntity extends AnyRef

An HTTP entity.

HTTP entities come in three flavors, HttpEntity.Strict, HttpEntity.Streamed and HttpEntity.Chunked.

Source
HttpEntity.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HttpEntity
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def as(contentType: String): HttpEntity

    Return this entity as the given content type.

  2. abstract def asJava: http.HttpEntity

    Convert this entity to its Java counterpart.

  3. abstract def contentLength: Option[Long]

    The content length of the entity, if known.

  4. abstract def contentType: Option[String]

    The content type of the entity, if known.

  5. abstract def dataStream: Source[ByteString, _]

    The entity as a data stream.

  6. abstract def isKnownEmpty: Boolean

    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.

Concrete Value Members

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

    Consume the data from this entity.