Packages

case class LastChunk(extension: String = "", trailer: Seq[HttpHeader] = Nil) extends ChunkStreamPart with Product with Serializable

The final chunk of a chunk stream. If you don't need extensions or trailer headers you can save an allocation by directly using the LastChunk companion object.

Source
HttpEntity.scala
Linear Supertypes
Serializable, Product, Equals, ChunkStreamPart, javadsl.model.HttpEntity.ChunkStreamPart, AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LastChunk
  2. Serializable
  3. Product
  4. Equals
  5. ChunkStreamPart
  6. ChunkStreamPart
  7. AnyRef
  8. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new LastChunk(extension: String = "", trailer: Seq[HttpHeader] = Nil)

Value Members

  1. def data(): ByteString

    Returns the byte data of this chunk.

    Returns the byte data of this chunk. Will be non-empty for every regular chunk. Will be empty for the last chunk.

    Definition Classes
    LastChunkChunkStreamPart → ChunkStreamPart
  2. val extension: String

    Returns extensions data for this chunk.

    Returns extensions data for this chunk.

    Definition Classes
    LastChunkChunkStreamPart → ChunkStreamPart
  3. def getTrailerHeaders(): Iterable[javadsl.model.HttpHeader]

    Java API

    Java API

    Definition Classes
    LastChunk → ChunkStreamPart
  4. def isLastChunk(): Boolean

    Returns if this is the last chunk

    Returns if this is the last chunk

    Definition Classes
    LastChunkChunkStreamPart → ChunkStreamPart
  5. def productElementNames: Iterator[String]
    Definition Classes
    Product
  6. val trailer: Seq[HttpHeader]