Class HeaderBlockParser


  • public class HeaderBlockParser
    extends java.lang.Object
    • Field Detail

      • STREAM_FAILURE

        public static final MetaData STREAM_FAILURE
      • SESSION_FAILURE

        public static final MetaData SESSION_FAILURE
    • Method Detail

      • parse

        public MetaData parse​(java.nio.ByteBuffer buffer,
                              int blockLength)
        Parses @{code blockLength} HPACK bytes from the given buffer.
        Parameters:
        buffer - the buffer to parse
        blockLength - the length of the HPACK block
        Returns:
        null, if the buffer contains less than blockLength bytes; STREAM_FAILURE if parsing the HPACK block produced a stream failure; SESSION_FAILURE if parsing the HPACK block produced a session failure; a valid MetaData object if the parsing was successful.