The problem of getting the parameters in the post request in netty;

how netty4.x acquires body: get ByteBuf through content () method and then readBytes to get byte [],


            ByteBuf byteBuf = reqMsg.content();
            int length = byteBuf.readableBytes();
            byte[] array = new byte[length];
            byteBuf.getBytes(byteBuf.readerIndex(), array);
            return array;
< H2 > this way supports form forms? Json? is still supported. Or is it encapsulated by netty and supports both formats of submission? < / H2 >
Menu