- All Known Implementing Classes:
Http2Upgrader,TyrusUpgrader,WsUpgrader
public interface Http1Upgrader
HTTP/1.1 connection upgrader.
-
Method Summary
Modifier and TypeMethodDescriptionExpected value of the protocol upgrade, such ash2c, orwebsocket.upgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Upgrade connection.
-
Method Details
-
supportedProtocol
String supportedProtocol()Expected value of the protocol upgrade, such ash2c, orwebsocket. If an implementation supports multiple protocols, please implement this selector for each protocol- Returns:
- supported protocol
-
upgrade
Upgrade connection.- Parameters:
ctx- connection contextprologue- http prologue of the upgrade requestheaders- http headers of the upgrade request- Returns:
- a new connection to use instead of the original
Http1Connection, ornullif the connection cannot be upgraded
-