Class HeaderParser
java.lang.Object
org.eclipse.jetty.http3.parser.HeaderParser
The parser for the frame header of HTTP/3 frames.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonglongbooleanparse(ByteBuffer buffer) Parses the frame header bytes in the givenbuffer; 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).voidreset()
-
Constructor Details
-
HeaderParser
public HeaderParser()
-
-
Method Details
-
reset
public void reset() -
parse
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).- Parameters:
buffer- the buffer to parse- Returns:
- 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()
-