ServerParser

Constructors

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

Members

Functions

directUpgrade
void directUpgrade()

<p> A direct upgrade is an unofficial upgrade from HTTP/1.1 to HTTP/2.0. </p> <p> A direct upgrade is initiated when HTTP connection sees a request with these bytes: </p>

onPreface
void onPreface()
Undocumented in source. Be warned that the author may not have intended to support it.
parse
void parse(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
standardUpgrade
void standardUpgrade()

<p> The standard HTTP/1.1 upgrade path. </p>

Interfaces

Listener
interface Listener
Undocumented in source.

Inherited Members

From Parser

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>

parseHeader
bool parseHeader(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
parseBody
bool parseBody(ByteBuffer buffer)
Undocumented in source. Be warned that the author may not have intended to support it.
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.
Listener
interface Listener
Undocumented in source.

Meta