<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>
<p> The standard HTTP/1.1 upgrade path. </p>
<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>