Interface Http1RoutedUpgrader

All Superinterfaces:
Http1Upgrader
All Known Implementing Classes:
TyrusUpgrader

public interface Http1RoutedUpgrader extends 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 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 context
      prologue - http prologue of the upgrade request
      headers - http headers of the upgrade request
      Returns:
      prepared routed upgrade, or an empty optional to continue with ordinary HTTP routing