private void decodeHeaderBlock(ByteBuffer buffer, Hpack.Reader reader, byte flags,
                                   DecodeCallback callback) throws IOException {
        try {
            reader.readHeaders(buffer, flags, callback);
        } catch (IndexOutOfBoundsException e) {
            throw new IOException("Http2 decode header block failed.");
        }
    }
Decodes HTTP2 request and response packets.

@author Megatron King
@since 2019/1/5 14:19
netbare-core/src/main/java/com/github/megatronking/netbare/http2/Http2DecodeInterceptor.java