- All Superinterfaces:
Http1Upgrader
- All Known Implementing Classes:
TyrusUpgrader
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 io.helidon.webserver.http1.spi.Http1Upgrader
supportedProtocol, upgrade
-
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
-