Interface HttpUpgrader

All Known Implementing Classes:
HttpUpgraderOverHTTP, HttpUpgraderOverHTTP2, ProtocolHttpUpgrader

public interface HttpUpgrader

HttpUpgrader prepares a HTTP request to upgrade from one protocol to another, and implements the upgrade mechanism.

The upgrade mechanism can be the HTTP/1.1 upgrade mechanism or the HTTP/2 extended CONNECT mechanism.

Given the differences among mechanism implementations, a request needs to be prepared before being sent to comply with the mechanism requirements (for example, add required headers, etc.).