Class PushBody

    • Method Detail

      • getContentLength

        public long getContentLength()
        Description copied from interface: Body
        Gets the length of the body.
        Specified by:
        getContentLength in interface Body
        Returns:
        The length of the body in bytes, or negative if unknown.
      • transferTo

        public Body.BodyState transferTo​(io.netty.buffer.ByteBuf target)
        Description copied from interface: Body
        Reads the next chunk of bytes from the body.
        Specified by:
        transferTo in interface Body
        Parameters:
        target - The buffer to store the chunk in, must not be null.
        Returns:
        The state.