public static class HttpEntity.LastChunk extends HttpEntity.ChunkStreamPart implements scala.Product, java.io.Serializable
LastChunk
companion object.LAST
Constructor and Description |
---|
LastChunk(java.lang.String extension,
scala.collection.immutable.Seq<HttpHeader> trailer) |
Modifier and Type | Method and Description |
---|---|
org.apache.pekko.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() |
create, create, createLast
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public LastChunk(java.lang.String extension, scala.collection.immutable.Seq<HttpHeader> trailer)
public java.lang.String extension()
HttpEntity.ChunkStreamPart
extension
in class HttpEntity.ChunkStreamPart
public scala.collection.immutable.Seq<HttpHeader> trailer()
public org.apache.pekko.util.ByteString data()
HttpEntity.ChunkStreamPart
data
in class HttpEntity.ChunkStreamPart
public boolean isLastChunk()
HttpEntity.ChunkStreamPart
isLastChunk
in class HttpEntity.ChunkStreamPart
public java.lang.Iterable<HttpHeader> getTrailerHeaders()
getTrailerHeaders
in class HttpEntity.ChunkStreamPart