- All Known Implementing Classes:
- Http2Upgrader,- TyrusUpgrader,- WsUpgrader
public interface Http1Upgrader
HTTP/1.1 connection upgrader.
- 
Method SummaryModifier and TypeMethodDescriptionExpected value of the protocol upgrade, such ash2c, orwebsocket.upgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Upgrade connection.
- 
Method Details- 
supportedProtocolString 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
 
- 
upgradeUpgrade connection.- Parameters:
- ctx- connection context
- prologue- http prologue of the upgrade request
- headers- http headers of the upgrade request
- Returns:
- a new connection to use instead of the original Http1Connection, ornullif the connection cannot be upgraded
 
 
-