[英]Do we need to worry about 32bit or 64bit integers or are we fine just using 'int'
[英]Netty 4.x- If use HttpObjectAggregator, do we still need to worry about LastHttpContent ?
在我的频道初始化器中,我正在使用以下p.addLast(new HttpServerCodec()); p.addLast(new HttpObjectAggregator(Integer.MAX_VALUE));
这是否意味着我总是想要获得完整的http请求,并且将没有LastHttpContent / HttpContent消息将被接收到我的服务器处理程序?
我需要使用HttpObjectAggregator的主要原因是,我没有办法只使用HttpServerCodec来访问HTTP POST请求的消息体。 只有HttpServerCodec有办法做到这一点吗? 有没有人有一个已知的示例/博客,它正确处理请求中的剩余消息部分(即LastHttpContent)
FullHttpRequest/Response
。 HttpServerCodec
获得FullHttpRequest
。 另一方面,在创建HttpObjectAggregator
时,不应指定Integer.MAX_VALUE
。 请指明更安全的东西。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.