Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

IHttpResponseBodyFeature Interface

Definition

Namespace:
Microsoft.AspNetCore.Http.Features
Assembly:
Microsoft.AspNetCore.Http.Features.dll
Package:
Microsoft.AspNetCore.App.Ref v10.0.0
Package:
Microsoft.AspNetCore.App.Ref v11.0.0-preview.4.26230.115
Package:
Microsoft.AspNetCore.Http.Features v3.0.3
Package:
Microsoft.AspNetCore.Http.Features v3.1.18
Package:
Microsoft.AspNetCore.Http.Features v5.0.9
Package:
Microsoft.AspNetCore.App.Ref v6.0.36
Package:
Microsoft.AspNetCore.App.Ref v7.0.5
Package:
Microsoft.AspNetCore.App.Ref v8.0.19
Package:
Microsoft.AspNetCore.App.Ref v9.0.8
Source:
IHttpResponseBodyFeature.cs

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.

An aggregate of the different ways to interact with the response body.

public interface class IHttpResponseBodyFeature
public interface IHttpResponseBodyFeature
type IHttpResponseBodyFeature = interface
Public Interface IHttpResponseBodyFeature
Derived

Properties

Name Description
Stream

The Stream for writing the response body.

Writer

A PipeWriter representing the response body, if any.

Methods

Name Description
CompleteAsync()

Flush any remaining response headers, data, or trailers. This may throw if the response is in an invalid state such as a Content-Length mismatch.

DisableBuffering()

Opts out of write buffering for the response.

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

Sends the requested file in the response body. A response may include multiple writes.

StartAsync(CancellationToken)

Starts the response by calling OnStarting() and making headers unmodifiable.

Applies to


Feedback

Was this page helpful?