Parser

<p> The HTTP/2 protocol parser. </p> <p> This parser makes use of the {@link HeaderParser} and of {@link BodyParser}s to parse HTTP/2 frames. </p>

Constructors

this
this(Listener listener, int maxDynamicTableSize, int maxHeaderSize)
Undocumented in source.

Members

Functions

getFrameType
int getFrameType()
Undocumented in source. Be warned that the author may not have intended to support it.
hasFlag
bool hasFlag(int bit)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyConnectionFailure
void notifyConnectionFailure(int error, string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
void parse(ByteBuffer buffer)

<p> Parses the given {@code buffer} bytes and emit events to a {@link Listener}. </p> <p> When this method returns, the buffer may not be fully consumed, so invocations to this method should be wrapped in a loop: </p> <p> <pre> while (buffer.hasRemaining()) parser.parse(buffer); </pre>

parseBody
bool parseBody(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
parseHeader
bool parseHeader(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.

Interfaces

Listener
interface Listener
Undocumented in source.

Meta