@Override
                public void onResult(ByteBuffer buffer, boolean isFinished) throws IOException {
                    int streamId = mResponseStream.id;
                    if (streamId < 0) {
                        throw new IOException("Http2 stream id is < 0");
                    }
                    HttpId id = mHttpIds.get(streamId);
                    if (id == null) {
                        id = new HttpId(streamId);
                        mHttpIds.put(streamId, id);
                    }
                    mZygoteResponse.zygote(id);
                    if (isFinished) {
                        mZygoteResponse.onStreamFinished();
                    }
                    if (!buffer.hasRemaining()) {
                        return;
                    }
                    chain.process(buffer);
                }
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