IHttpUpgradeFeature Interface

Definition

Provides access to server upgrade features.

C#
public interface IHttpUpgradeFeature

Properties

IsUpgradableRequest

Indicates if the server can upgrade this request to an opaque, bidirectional stream.

Methods

UpgradeAsync()

Attempt to upgrade the request to an opaque, bidirectional stream. The response status code and headers need to be set before this is invoked. Check IsUpgradableRequest before invoking.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0