Package akka.http.scaladsl.model
Class HttpEntity.Chunk
java.lang.Object
akka.http.javadsl.model.HttpEntity.ChunkStreamPart
akka.http.scaladsl.model.HttpEntity.ChunkStreamPart
akka.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 akka.http.javadsl.model.HttpEntity.ChunkStreamPart
LAST
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionakka.util.ByteString
data()
Returns the byte data of this chunk.Returns extensions data for this chunk.Java APIboolean
Returns if this is the last chunkMethods inherited from class akka.http.javadsl.model.HttpEntity.ChunkStreamPart
create, create, createLast
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
-
Constructor Details
-
Chunk
-
-
Method Details
-
data
public akka.util.ByteString data()Description copied from class:HttpEntity.ChunkStreamPart
Returns the byte data of this chunk. Will be non-empty for every regular chunk. Will be empty for the last chunk.- Specified by:
data
in classHttpEntity.ChunkStreamPart
-
extension
Description copied from class:HttpEntity.ChunkStreamPart
Returns extensions data for this chunk.- Specified by:
extension
in classHttpEntity.ChunkStreamPart
-
isLastChunk
public boolean isLastChunk()Description copied from class:HttpEntity.ChunkStreamPart
Returns if this is the last chunk- Specified by:
isLastChunk
in classHttpEntity.ChunkStreamPart
-
getTrailerHeaders
Java API- Specified by:
getTrailerHeaders
in classHttpEntity.ChunkStreamPart
-