Class HttpClientUpgradeHandler<C extends HttpContent<C>>

  • All Implemented Interfaces:
    ChannelHandler

    public class HttpClientUpgradeHandler<C extends HttpContent<C>>
    extends HttpObjectAggregator<C>
    Client-side handler for handling an HTTP upgrade handshake to another protocol. When the first HTTP request is sent, this handler will add all appropriate headers to perform an upgrade to the new protocol. If the upgrade fails (i.e. response is not 101 Switching Protocols), this handler simply removes itself from the pipeline. If the upgrade is successful, upgrades the pipeline to the new protocol.