netty5/codec-http/src/test/java/io/netty/handler/codec
Norman Maurer 1e8c0c59f1
Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377)
Motivation:

In many places Netty uses Unpooled.buffer(0) while should use EMPTY_BUFFER. We can't change this due to back compatibility in the constructors but can use Unpooled.EMPTY_BUFFER in some cases to ensure we not allocate at all. In others we can directly use the allocator either from the Channel / ChannelHandlerContext or the request / response.

Modification:

- Use Unpooled.EMPTY_BUFFER where possible
- Use allocator where possible

Result:

Fixes #9345 for websockets and http package
2019-07-18 10:29:50 +02:00
..
http Use allocator when constructing ByteBufHolder sub-types or use Unpool… (#9377) 2019-07-18 10:29:50 +02:00
rtsp Created RTSPEncoder and RTSPDecoder which are now common for both requests and responses to be able to handle both types of messages on the same channel. 2015-10-27 14:01:20 +01:00
spdy Remove deprecated usage of Mockito methods 2017-03-09 20:59:54 +01:00