ContentHttpResult Class

Definition

An ContentHttpResult that when executed will produce a response with content.

public sealed class ContentHttpResult : Microsoft.AspNetCore.Http.IContentTypeHttpResult, Microsoft.AspNetCore.Http.IResult, Microsoft.AspNetCore.Http.IStatusCodeHttpResult
type ContentHttpResult = class
    interface IResult
    interface IStatusCodeHttpResult
    interface IContentTypeHttpResult
Public NotInheritable Class ContentHttpResult
Implements IContentTypeHttpResult, IResult, IStatusCodeHttpResult
Inheritance
ContentHttpResult
Implements

Properties

ContentType

Gets the Content-Type header for the response.

ResponseContent

Gets the content representing the body of the response.

StatusCode

Gets the HTTP status code.

Methods

ExecuteAsync(HttpContext)

Writes the content to the HTTP response.

Applies to