Class HttpResponseBodyPart

    • Constructor Detail

      • HttpResponseBodyPart

        protected HttpResponseBodyPart​(boolean last)
    • Method Detail

      • length

        public abstract int length()
        Returns:
        length of this part in bytes
      • getBodyPartBytes

        public abstract byte[] getBodyPartBytes()
        Returns:
        the response body's part bytes received.
      • getBodyByteBuffer

        public abstract ByteBuffer getBodyByteBuffer()
        Returns:
        a ByteBuffer that wraps the actual bytes read from the response's chunk. The ByteBuffer's capacity is equal to the number of bytes available.
      • isLast

        public boolean isLast()
        Returns:
        true if this is the last part.