private static void onDataRead(ChannelHandlerContext ctx, Http2DataFrame data) throws Exception {
        if (data.isEndStream()) {
            sendResponse(ctx, data.content());
        } else {
            // We do not send back the response to the remote-peer, so we need to release it.
            data.release();
        }
    }
private static void onDataRead ( ChannelHandlerContext ctx , Http2DataFrame data ) throws Exception { if ( data . isEndStream ( ) ) { sendResponse ( ctx , data . content ( ) ) ; } else { data . release ( ) ; } }
If receive a frame with end-of-stream set, send a pre-canned response.