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
.Modifier and Type | Field and Description |
---|---|
static HttpChunkTrailer |
LAST_CHUNK
The 'end of content' marker in chunked encoding.
|
Modifier and Type | Method and Description |
---|---|
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)
Copyright © 2008-2014 The Netty Project. All Rights Reserved.