Share via


SseResult Class

Definition

Represents a Server-Sent Events (SSE) result for streaming data to HTTP clients.

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

Constructors

Name Description
SseResult(IAsyncEnumerable<SseFrame>, Nullable<TimeSpan>)

Represents a Server-Sent Events (SSE) result for streaming data to HTTP clients.

Properties

Name Description
ContentType

Gets the content type for the result.

StatusCode

Gets the HTTP status code for the result.

Methods

Name Description
ExecuteAsync(HttpContext)

Executes the SSE result by streaming frames to the HTTP response.

Applies to