More Javadoc
This commit is contained in:
parent
8c39e2823e
commit
96bbbbb7f1
@ -137,6 +137,11 @@ public interface HttpMessage {
|
|||||||
* Returns {@code true} if and only if this message does not have any
|
* Returns {@code true} if and only if this message does not have any
|
||||||
* content but the {@link HttpChunk}s, which is generated by
|
* content but the {@link HttpChunk}s, which is generated by
|
||||||
* {@link HttpMessageDecoder} consecutively, contain the actual content.
|
* {@link HttpMessageDecoder} consecutively, contain the actual content.
|
||||||
|
* <p>
|
||||||
|
* Please note that this method will keep returning {@code true} if the
|
||||||
|
* {@code "Transfer-Encoding"} of this message is {@code "chunked"}, even if
|
||||||
|
* you attempt to override this property by calling {@link #setChunked(boolean)}
|
||||||
|
* with {@code false}.
|
||||||
*/
|
*/
|
||||||
boolean isChunked();
|
boolean isChunked();
|
||||||
|
|
||||||
@ -147,6 +152,10 @@ public interface HttpMessage {
|
|||||||
* <p>
|
* <p>
|
||||||
* If this method is called with {@code true}, the content of this message
|
* If this method is called with {@code true}, the content of this message
|
||||||
* becomes {@link ChannelBuffers#EMPTY_BUFFER}.
|
* becomes {@link ChannelBuffers#EMPTY_BUFFER}.
|
||||||
|
* <p>
|
||||||
|
* Even if this method is called with {@code false}, {@link #isChunked()}
|
||||||
|
* will keep returning {@code true} if the {@code "Transfer-Encoding"} of
|
||||||
|
* this message is {@code "chunked"}.
|
||||||
*/
|
*/
|
||||||
void setChunked(boolean chunked);
|
void setChunked(boolean chunked);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user