Class MessageParser
java.lang.Object
org.eclipse.jetty.http3.parser.MessageParser
The HTTP/3 protocol parser.
This parser makes use of the HeaderParser
and of
BodyParser
s to parse HTTP/3 frames.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
init
(UnaryOperator<ParserListener> wrapper) parse
(ByteBuffer buffer, boolean last) Parses the givenbuffer
bytes and emit events to aParserListener
.
-
Constructor Details
-
MessageParser
-
-
Method Details
-
init
-
getListener
-
parse
Parses the given
buffer
bytes and emit events to aParserListener
.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
-