IHttpSendFileFeature 介面

定義

警告

Use IHttpResponseBodyFeature instead.

提供將檔案從磁片傳輸到網路的有效機制。

public interface class IHttpSendFileFeature
public interface IHttpSendFileFeature
[System.Obsolete("Use IHttpResponseBodyFeature instead.", true)]
public interface IHttpSendFileFeature
type IHttpSendFileFeature = interface
[<System.Obsolete("Use IHttpResponseBodyFeature instead.", true)>]
type IHttpSendFileFeature = interface
Public Interface IHttpSendFileFeature
衍生
屬性

方法

SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken)
已淘汰.

在回應本文中傳送要求的檔案。 這可能會略過 IHttpResponseFeature.Body Stream 。 回應可能包含多個寫入。

適用於