A little bit more explanation on the usage of HttpChunkAggregator
This commit is contained in:
parent
6d4adea536
commit
566f72abe6
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user