Data types
TypeSpec.SSE
SSEStream
Describes a stream of server-sent events.
The content-type is set to text/event-stream
.
The server-sent events are described by Type
.
The event type for any event can be defined by using named union variants.
When a union variant is not named, it is considered a โmessageโ event.
Template Parameters
Name | Description |
---|---|
Type | The set of models describing the server-sent events. |
Examples
Mix of named union variants and terminal event
Properties
Name | Type | Description |
---|---|---|
contentType | "text/event-stream" | |
body | string |