BodyParser

<p> The base parser for the frame body of HTTP/2 frames. </p> <p> Subclasses implement {@link #parse(ByteBuffer)} to parse the frame specific body. </p>

@see Parser

Constructors

this
this(HeaderParser headerParser, Parser.Listener listener)
Undocumented in source.

Members

Functions

connectionFailure
bool connectionFailure(ByteBuffer buffer, int error, string reason)
Undocumented in source. Be warned that the author may not have intended to support it.
emptyBody
void emptyBody(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
getBodyLength
int getBodyLength()
Undocumented in source. Be warned that the author may not have intended to support it.
getStreamId
int getStreamId()
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.
isEndStream
bool isEndStream()
Undocumented in source. Be warned that the author may not have intended to support it.
isPadding
bool isPadding()
Undocumented in source. Be warned that the author may not have intended to support it.
notifyData
void notifyData(DataFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyGoAway
void notifyGoAway(GoAwayFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyHeaders
void notifyHeaders(HeadersFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyPing
void notifyPing(PingFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyPriority
void notifyPriority(PriorityFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyPushPromise
void notifyPushPromise(PushPromiseFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyReset
void notifyReset(ResetFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifySettings
void notifySettings(SettingsFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
notifyWindowUpdate
void notifyWindowUpdate(WindowUpdateFrame frame)
Undocumented in source. Be warned that the author may not have intended to support it.
parse
bool parse(ByteBuffer buffer)

<p> Parses the body bytes in the given {@code buffer}; only the body bytes are consumed, therefore when this method returns, the buffer may contain unconsumed bytes. </p>

Meta