Class MessageParser

java.lang.Object
org.eclipse.jetty.http3.parser.MessageParser

public class MessageParser extends Object

The HTTP/3 protocol parser.

This parser makes use of the HeaderParser and of BodyParsers to parse HTTP/3 frames.

  • Constructor Details

  • Method Details

    • init

      public void init(UnaryOperator<ParserListener> wrapper)
    • getListener

      public ParserListener getListener()
    • isDataMode

      public boolean isDataMode()
    • setDataMode

      public void setDataMode(boolean enable)
    • parse

      public MessageParser.Result parse(ByteBuffer buffer)

      Parses the given buffer bytes and emit events to a ParserListener.

      Only the bytes of one frame are consumed, therefore when this method returns, the buffer may contain unconsumed bytes, for example for other frames.

      Parameters:
      buffer - the buffer to parse
      Returns:
      the result of the parsing