public interface HttpChunk
HttpMessageDecoder
generates HttpChunk
after
HttpMessage
when the content is large or the encoding of the content
is 'chunked. If you prefer not to receive HttpChunk
in your handler,
please HttpChunkAggregator
after HttpMessageDecoder
in the
ChannelPipeline
.限定符和类型 | 字段和说明 |
---|---|
static HttpChunkTrailer |
LAST_CHUNK
The 'end of content' marker in chunked encoding.
|
限定符和类型 | 方法和说明 |
---|---|
ChannelBuffer |
getContent()
Returns the content of this chunk.
|
boolean |
isLast()
Returns
true if and only if this chunk is the 'end of content'
marker. |
void |
setContent(ChannelBuffer content)
Sets the content of this chunk.
|
static final HttpChunkTrailer LAST_CHUNK
boolean isLast()
true
if and only if this chunk is the 'end of content'
marker.ChannelBuffer getContent()
ChannelBuffers.EMPTY_BUFFER
will be returned.void setContent(ChannelBuffer content)