Class HttpEntity.LastChunk

  • All Implemented Interfaces:
    java.io.Serializable, scala.Equals, scala.Product
    Direct Known Subclasses:
    HttpEntity.LastChunk$
    Enclosing interface:
    HttpEntity

    public static class HttpEntity.LastChunk
    extends HttpEntity.ChunkStreamPart
    implements scala.Product, java.io.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.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      LastChunk​(java.lang.String extension, scala.collection.immutable.Seq<HttpHeader> trailer)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      akka.util.ByteString data()
      Returns the byte data of this chunk.
      java.lang.String extension()
      Returns extensions data for this chunk.
      java.lang.Iterable<HttpHeader> getTrailerHeaders()
      Java API
      boolean isLastChunk()
      Returns if this is the last chunk
      scala.collection.immutable.Seq<HttpHeader> trailer()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface scala.Equals

        canEqual, equals
      • Methods inherited from interface scala.Product

        productArity, productElement, productElementName, productElementNames, productIterator, productPrefix