我正在使用一个可配置的代理(小代理)来监听从客户端(即 chrome 浏览器)生成的请求。我需要发布请求的正文。
在管道中,这是我添加的。我以为我会得到一个 FullHttpRequest,但得到
pipeline.addLast("decoder", new HttpRequestDecoder(8192*4, 8192 * 8,8192 * 8));
pipeline.addLast("inflater", new HttpContentDecompressor());
pipeline.addLast("aggregator", new HttpObjectAggregator(1048576));
pipeline.addLast("encoder", new HttpResponseEncoder());
对于 Post 请求,我得到这个数据类型 HttpObjectAggregator#AggregatedFullHttpRequest。我尝试调试。但无法理解compositebytebuff的概念。
让我知道如何实现这一目标。