IHttpUpgradeFeature.UpgradeAsync 方法

定义

尝试将请求升级到不透明的双向流。 在调用此代码之前,需要设置响应状态代码和标头。 在调用之前检查 IsUpgradableRequest

public:
 System::Threading::Tasks::Task<System::IO::Stream ^> ^ UpgradeAsync();
public System.Threading.Tasks.Task<System.IO.Stream> UpgradeAsync ();
abstract member UpgradeAsync : unit -> System.Threading.Tasks.Task<System.IO.Stream>
Public Function UpgradeAsync () As Task(Of Stream)

返回

适用于