Class HeaderBlockParser
java.lang.Object
org.eclipse.jetty.http2.parser.HeaderBlockParser
-
Constructor Summary
ConstructorsConstructorDescriptionHeaderBlockParser
(HeaderParser headerParser, ByteBufferPool bufferPool, HpackDecoder hpackDecoder, BodyParser notifier) -
Method Summary
Modifier and TypeMethodDescriptionint
parse
(ByteBuffer buffer, int blockLength) Parses @{code blockLength} HPACK bytes from the givenbuffer
.
-
Constructor Details
-
HeaderBlockParser
public HeaderBlockParser(HeaderParser headerParser, ByteBufferPool bufferPool, HpackDecoder hpackDecoder, BodyParser notifier)
-
-
Method Details
-
getMaxHeaderListSize
public int getMaxHeaderListSize() -
parse
Parses @{code blockLength} HPACK bytes from the givenbuffer
.- Parameters:
buffer
- the buffer to parseblockLength
- the length of the HPACK block- Returns:
- null, if the buffer contains less than
blockLength
bytes; an instance ofMetaData.Failed
if parsing the HPACK block produced a failure; an instance ofMetaData
if the parsing was successful.
-