public abstract static class HttpEntity.ChunkStreamPart
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
| static HttpEntity.ChunkStreamPart | LASTThe default last ChunkStreamPart that has no extension and no trailer headers. | 
| Constructor and Description | 
|---|
| ChunkStreamPart() | 
| Modifier and Type | Method and Description | 
|---|---|
| static HttpEntity.ChunkStreamPart | create(org.apache.pekko.util.ByteString data)Creates a chunk from data with an empty extension. | 
| static HttpEntity.ChunkStreamPart | create(org.apache.pekko.util.ByteString data,
      java.lang.String extension)Creates a chunk from data and extension. | 
| static HttpEntity.ChunkStreamPart | createLast(java.lang.String extension,
          java.lang.Iterable<HttpHeader> trailerHeaders)Creates a last chunk with extension and headers. | 
| abstract org.apache.pekko.util.ByteString | data()Returns the byte data of this chunk. | 
| abstract java.lang.String | extension()Returns extensions data for this chunk. | 
| abstract java.lang.Iterable<HttpHeader> | getTrailerHeaders()If this is the last chunk, this will return an Iterable of the trailer headers. | 
| abstract boolean | isLastChunk()Returns if this is the last chunk | 
public static final HttpEntity.ChunkStreamPart LAST
public abstract org.apache.pekko.util.ByteString data()
public abstract java.lang.String extension()
public abstract boolean isLastChunk()
public abstract java.lang.Iterable<HttpHeader> getTrailerHeaders()
public static HttpEntity.ChunkStreamPart create(org.apache.pekko.util.ByteString data, java.lang.String extension)
public static HttpEntity.ChunkStreamPart create(org.apache.pekko.util.ByteString data)
public static HttpEntity.ChunkStreamPart createLast(java.lang.String extension, java.lang.Iterable<HttpHeader> trailerHeaders)