A little bit more explanation on the usage of HttpChunkAggregator

This commit is contained in:
Trustin Lee 2009-03-16 04:29:47 +00:00
parent 6d4adea536
commit 566f72abe6
2 changed files with 2 additions and 0 deletions

View File

@ -44,6 +44,7 @@ public class HttpClientPipelineFactory implements ChannelPipelineFactory {
// Create a default pipeline implementation.
ChannelPipeline pipeline = pipeline();
pipeline.addLast("decoder", new HttpResponseDecoder());
// Uncomment the following line if you don't want to handle HttpChunks.
//pipeline.addLast("aggregator", new HttpChunkAggregator(1048576));
pipeline.addLast("encoder", new HttpRequestEncoder());
pipeline.addLast("handler", handler);

View File

@ -45,6 +45,7 @@ public class HttpServerPipelineFactory implements ChannelPipelineFactory {
ChannelPipeline pipeline = pipeline();
pipeline.addLast("decoder", new HttpRequestDecoder());
// Uncomment the following line if you don't want to handle HttpChunks.
//pipeline.addLast("aggregator", new HttpChunkAggregator(1048576));
pipeline.addLast("encoder", new HttpResponseEncoder());
pipeline.addLast("handler", handler);