Class HeaderParser


public class HeaderParser extends Object

The parser for the frame header of HTTP/3 frames.

See Also:
  • Constructor Details

    • HeaderParser

      public HeaderParser()
  • Method Details

    • reset

      public void reset()
    • parse

      public boolean parse(ByteBuffer buffer)

      Parses the frame header bytes in the given buffer; only the frame header bytes are consumed, therefore when this method returns, the buffer may contain the unconsumed bytes of the frame body (or other frames).

      buffer - the buffer to parse
      true if all the frame header bytes were parsed, false if not enough frame header bytes were present in the buffer
    • getFrameType

      public long getFrameType()
    • getFrameLength

      public long getFrameLength()