private void discardHeaderBytes(NetworkRequest request) throws IOException {
    DataInputStream stream = new DataInputStream(request.getInputStream());
    stream.readLong();
  }
Consume the first 8 bytes of the input stream which represents the size of the request. This is added to the
request since legacy Ambry's {@link SocketServer} stack needs to know the number of the bytes to read for a request
(see {@link BoundedNettyByteBufReceive#readFrom(ReadableByteChannel)} method). This is not needed when using
Netty HTTP2 server stack. We can remove this once {@link SocketServer} stack is retired. For now, we are
discarding the bytes here so that rest of request handling in server is same.
@param request incoming request
ambry-network/src/main/java/com/github/ambry/network/http2/AmbryNetworkRequestHandler.java