final case class Streamed(data: Source[ByteString, _], contentLength: Option[Long], contentType: Option[String]) extends HttpEntity with Product with Serializable

A streamed entity.

data

The stream of data for this entity.

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.

Source
HttpEntity.scala
Linear Supertypes
Serializable, Product, Equals, HttpEntity, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Streamed
  2. Serializable
  3. Product
  4. Equals
  5. HttpEntity
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Streamed(data: Source[ByteString, _], contentLength: Option[Long], contentType: Option[String])

    data

    The stream of data for this entity.

    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.

Value Members

  1. def as(contentType: String): HttpEntity

    Return this entity as the given content type.

    Return this entity as the given content type.

    Definition Classes
    HttpEntity
  2. def asJava: http.HttpEntity

    Convert this entity to its Java counterpart.

    Convert this entity to its Java counterpart.

    Definition Classes
    HttpEntity
  3. def consumeData(implicit mat: Materializer): Future[ByteString]

    Consume the data from this entity.

    Consume the data from this entity.

    Definition Classes
    HttpEntity
  4. val contentLength: Option[Long]

    The content length of the entity, if known.

    The content length of the entity, if known.

    Definition Classes
    HttpEntity
  5. val contentType: Option[String]

    The content type of the entity, if known.

    The content type of the entity, if known.

    Definition Classes
    HttpEntity
  6. val data: Source[ByteString, _]
  7. def dataStream: Source[ByteString, _]

    The entity as a data stream.

    The entity as a data stream.

    Definition Classes
    HttpEntity
  8. 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.

    Definition Classes
    HttpEntity
  9. def productElementNames: Iterator[String]
    Definition Classes
    Product