Package akka.http.scaladsl.model
Class HttpEntity.ChunkStreamPart
- java.lang.Object
-
- akka.http.javadsl.model.HttpEntity.ChunkStreamPart
-
- akka.http.scaladsl.model.HttpEntity.ChunkStreamPart
-
- Direct Known Subclasses:
HttpEntity.Chunk,HttpEntity.LastChunk
- Enclosing interface:
- HttpEntity
public abstract static class HttpEntity.ChunkStreamPart extends HttpEntity.ChunkStreamPart
An element of the HttpEntity data stream. Can be either aChunkor aLastChunk.
-
-
Field Summary
-
Fields inherited from class akka.http.javadsl.model.HttpEntity.ChunkStreamPart
LAST
-
-
Constructor Summary
Constructors Constructor Description ChunkStreamPart()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract akka.util.ByteStringdata()Returns the byte data of this chunk.abstract java.lang.Stringextension()Returns extensions data for this chunk.abstract booleanisLastChunk()Returns if this is the last chunk-
Methods inherited from class akka.http.javadsl.model.HttpEntity.ChunkStreamPart
create, create, createLast, getTrailerHeaders
-
-
-
-
Method Detail
-
data
public abstract akka.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
public abstract java.lang.String extension()
Description copied from class:HttpEntity.ChunkStreamPartReturns extensions data for this chunk.- Specified by:
extensionin classHttpEntity.ChunkStreamPart
-
isLastChunk
public abstract boolean isLastChunk()
Description copied from class:HttpEntity.ChunkStreamPartReturns if this is the last chunk- Specified by:
isLastChunkin classHttpEntity.ChunkStreamPart
-
-