Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
IHttpSendFileFeature Interface
Definition
- Namespace:
- Microsoft.AspNetCore.Http.Features
- Assembly:
- Microsoft.AspNetCore.Http.Features.dll
- Package:
- Microsoft.AspNetCore.Http.Features v1.0.0
- Package:
- Microsoft.AspNetCore.Http.Features v1.1.0
- Package:
- Microsoft.AspNetCore.Http.Features v2.0.0
- Package:
- Microsoft.AspNetCore.Http.Features v2.1.0
- Package:
- Microsoft.AspNetCore.Http.Features v2.2.0
- Package:
- Microsoft.AspNetCore.Http.Features v3.0.3
- Package:
- Microsoft.AspNetCore.Http.Features v3.1.18
- Package:
- Microsoft.AspNetCore.Http.Features v5.0.9
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
Use IHttpResponseBodyFeature instead.
Provides an efficient mechanism for transferring files from disk to the network.
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
- Derived
- Attributes
Methods
| Name | Description |
|---|---|
| SendFileAsync(String, Int64, Nullable<Int64>, CancellationToken) |
Sends the requested file in the response body. This may bypass the IHttpResponseFeature.Body Stream. A response may include multiple writes. |
Applies to
Feedback
Was this page helpful?
