HttpResponseFeature Class
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.
Default implementation for IHttpResponseFeature.
public ref class HttpResponseFeature : Microsoft::AspNetCore::Http::Features::IHttpResponseFeature
public class HttpResponseFeature : Microsoft.AspNetCore.Http.Features.IHttpResponseFeature
type HttpResponseFeature = class
interface IHttpResponseFeature
Public Class HttpResponseFeature
Implements IHttpResponseFeature
- Inheritance
-
HttpResponseFeature
- Implements
Http |
Initializes a new instance of HttpResponseFeature. |
Body |
Gets or sets the Stream for writing the response body. |
Has |
Gets a value that indicates if the response has started.
If |
Headers |
Gets or sets the response headers to send. Headers with multiple values will be emitted as multiple headers. |
Reason |
Gets or sets the reason-phrase as defined in RFC 7230. Note this field is no longer supported by HTTP/2. |
Status |
Gets or sets the status-code as defined in RFC 7230. |
On |
Registers a callback to be invoked after a response has fully completed. This is intended for resource cleanup. |
On |
Registers a callback to be invoked just before the response starts. This is the last chance to modify the Headers, StatusCode, or ReasonPhrase. |