IHttpResponseBodyFeature 介面

定義

與回應本文互動的不同方式匯總。

public interface class IHttpResponseBodyFeature
public interface IHttpResponseBodyFeature
type IHttpResponseBodyFeature = interface
Public Interface IHttpResponseBodyFeature
衍生

屬性

Stream

Stream用於寫入回應本文的 。

Writer

PipeWriter 表示回應本文,如果有的話。

方法

CompleteAsync()

排清任何剩餘的回應標頭、資料或預告片。 如果回應處於無效狀態,例如 Content-Length 不符,可能會擲回。

DisableBuffering()

退出宣告回應的寫入緩衝處理。

SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)

在回應本文中傳送要求的檔案。 回應可能包含多個寫入。

StartAsync(CancellationToken)

呼叫 OnStarting () 並將標頭設定為不可修改,以啟動回應。

適用於