org.apache.hc.core5.reactor

## Interface ProtocolUpgradeHandler

- All Known Implementing Classes:
    ClientH2UpgradeHandler, ServerH2UpgradeHandler

      @Internal
      public interface ProtocolUpgradeHandler

  Application protocol upgrade handler. This routine can be used to upgrade I/O sessions to a new application protocol.
  Since:
    5.2

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `upgrade(ProtocolIOSession ioSession, FutureCallback<ProtocolIOSession> callback)` Upgrades application protocol of the given I/O session.

- - ### Method Detail

    - #### upgrade

          void upgrade(ProtocolIOSession ioSession,
                       FutureCallback<ProtocolIOSession> callback)

      Upgrades application protocol of the given I/O session.

Copyright © 2005–2021 The Apache Software Foundation. All rights reserved.