public static final class HttpEntity.Chunk extends HttpEntity.ChunkStreamPart implements scala.Product, java.io.Serializable
LAST
Constructor and Description |
---|
Chunk(org.apache.pekko.util.ByteString data,
java.lang.String extension) |
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
|
create, create, createLast
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public Chunk(org.apache.pekko.util.ByteString data, java.lang.String extension)
public org.apache.pekko.util.ByteString data()
HttpEntity.ChunkStreamPart
data
in class HttpEntity.ChunkStreamPart
public java.lang.String extension()
HttpEntity.ChunkStreamPart
extension
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