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 aChunk
or 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.ByteString
data()
Returns the byte data of this chunk.abstract java.lang.String
extension()
Returns extensions data for this chunk.abstract boolean
isLastChunk()
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.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
public abstract java.lang.String extension()
Description copied from class:HttpEntity.ChunkStreamPart
Returns extensions data for this chunk.- Specified by:
extension
in classHttpEntity.ChunkStreamPart
-
isLastChunk
public abstract boolean isLastChunk()
Description copied from class:HttpEntity.ChunkStreamPart
Returns if this is the last chunk- Specified by:
isLastChunk
in classHttpEntity.ChunkStreamPart
-
-