Class HeaderParser

java.lang.Object
org.eclipse.jetty.http2.parser.HeaderParser

public class HeaderParser extends Object

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

See Also:
  • Constructor Details

    • HeaderParser

      public HeaderParser(RateControl rateControl)
  • Method Details

    • getRateControl

      public RateControl getRateControl()
    • reset

      protected void reset()
    • parse

      public boolean parse(ByteBuffer buffer)

      Parses the header bytes in the given buffer; only the header bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes.

      Parameters:
      buffer - the buffer to parse
      Returns:
      true if the whole header bytes were parsed, false if not enough header bytes were present in the buffer
    • getLength

      public int getLength()
    • getFrameType

      public int getFrameType()
    • hasFlag

      public boolean hasFlag(int bit)
    • getStreamId

      public int getStreamId()
    • toString

      public String toString()
      Overrides:
      toString in class Object