API

text/event-stream

Identifies an SSE response; events use text framing.

Formal Syntax & Structure

csharp syntaxcsharp
ctx.Response.ContentType = "text/event-stream";

Working Example

Example Snippetcsharp
// Documentary fragment; see mapped lesson for context.ctx.Response.ContentType = "text/event-stream";
C# & .NET Reference