public static interface Connection.UpgradeFrom
Connection implementations implement this interface when they
can upgrade from the protocol they speak (for example HTTP/1.1)
to a different protocol (e.g. HTTP/2).
EndPoint.upgrade(Connection),
Connection.UpgradeTo| Modifier and Type | Method and Description |
|---|---|
java.nio.ByteBuffer |
onUpgradeFrom()
Invoked during an
upgrade
to produce a buffer containing bytes that have not been consumed by
this connection, and that must be consumed by the upgrade-to
connection. |
java.nio.ByteBuffer onUpgradeFrom()
Invoked during an upgrade
to produce a buffer containing bytes that have not been consumed by
this connection, and that must be consumed by the upgrade-to
connection.
Copyright © 1995–2021 Webtide. All rights reserved.