Interface Http1RoutedUpgrader
- All Superinterfaces:
Http1Upgrader
HTTP/1 protocol upgrader that owns routed handling for its protocol.
If routedUpgrade(ConnectionContext, HttpPrologue, WritableHeaders)
returns an empty optional, HTTP/1 treats the request as not upgraded and
continues with ordinary HTTP routing.
-
Method Summary
Modifier and TypeMethodDescriptionroutedUpgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Prepare an upgrade that should run through HTTP routing filters and route policies before the protocol switch is completed.Methods inherited from interface Http1Upgrader
supportedProtocol, upgradeModifier and TypeMethodDescriptionExpected value of the protocol upgrade, such ash2c, orwebsocket.upgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Upgrade connection.
-
Method Details
-
routedUpgrade
Optional<Http1RoutedUpgrade> routedUpgrade(ConnectionContext ctx, HttpPrologue prologue, WritableHeaders<?> headers) Prepare an upgrade that should run through HTTP routing filters and route policies before the protocol switch is completed.- Parameters:
ctx- connection contextprologue- http prologue of the upgrade requestheaders- http headers of the upgrade request- Returns:
- prepared routed upgrade, or an empty optional to continue with ordinary HTTP routing
-