Class HttpEntity.Chunk
java.lang.Object
org.apache.pekko.http.javadsl.model.HttpEntity.ChunkStreamPart
org.apache.pekko.http.scaladsl.model.HttpEntity.ChunkStreamPart
org.apache.pekko.http.scaladsl.model.HttpEntity.Chunk
- All Implemented Interfaces:
Serializable,scala.Equals,scala.Product
- Enclosing interface:
- HttpEntity
public static final class HttpEntity.Chunk
extends HttpEntity.ChunkStreamPart
implements scala.Product, Serializable
An intermediate entity chunk guaranteed to carry non-empty data.
- See Also:
-
Field Summary
Fields inherited from class org.apache.pekko.http.javadsl.model.HttpEntity.ChunkStreamPart
LAST -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.util.ByteStringdata()Returns the byte data of this chunk.Returns extensions data for this chunk.Java APIbooleanReturns if this is the last chunkMethods inherited from class org.apache.pekko.http.javadsl.model.HttpEntity.ChunkStreamPart
create, create, createLastMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface scala.Equals
canEqual, equalsMethods inherited from interface scala.Product
productArity, productElement, productElementName, productElementNames, productIterator, productPrefix
-
Constructor Details
-
Chunk
-
-
Method Details
-
data
public org.apache.pekko.util.ByteString data()Description copied from class:HttpEntity.ChunkStreamPartReturns the byte data of this chunk. Will be non-empty for every regular chunk. Will be empty for the last chunk.- Specified by:
datain classHttpEntity.ChunkStreamPart
-
extension
Description copied from class:HttpEntity.ChunkStreamPartReturns extensions data for this chunk.- Specified by:
extensionin classHttpEntity.ChunkStreamPart
-
isLastChunk
public boolean isLastChunk()Description copied from class:HttpEntity.ChunkStreamPartReturns if this is the last chunk- Specified by:
isLastChunkin classHttpEntity.ChunkStreamPart
-
getTrailerHeaders
Java API- Specified by:
getTrailerHeadersin classHttpEntity.ChunkStreamPart
-