netty5/codec-http2/src
Norman Maurer d698746609 Add ByteBuf.asReadOnly()
Motivation:

We lately added ByteBuf.isReadOnly() which allows to detect if a buffer is read-only or not. We should add ByteBuf.asReadOnly() to allow easily access a read-only version of a buffer.

Modifications:

- Add ByteBuf.asReadOnly()
- Deprecate Unpooled.unmodifiableBuffer(Bytebuf)

Result:

More consistent api.
2016-04-14 10:51:20 +02:00
..
main/java/io/netty/handler/codec/http2 Add ByteBuf.asReadOnly() 2016-04-14 10:51:20 +02:00
test Fix resource leak in tests introduced by 69070c37ba. 2016-04-14 10:13:55 +02:00