Interface Body

    • Method Detail

      • getContentLength

        long getContentLength()
        Gets the length of the body.
        Returns:
        The length of the body in bytes, or negative if unknown.
      • transferTo

        Body.BodyState transferTo​(io.netty.buffer.ByteBuf target)
                           throws IOException
        Reads the next chunk of bytes from the body.
        Parameters:
        target - The buffer to store the chunk in, must not be null.
        Returns:
        The state.
        Throws:
        IOException - If the chunk could not be read.