text/*
text/event-stream
The MIME type for Server-Sent Events (SSE) streams.
What is text/event-stream?
text/event-stream is the required Content-Type for Server-Sent Events endpoints consumed by EventSource in the browser. Each event is a chunk of text separated by blank lines.
Typical usage
Streaming updates from server to client — notifications, live tickers, LLM streaming.
Common gotchas
SSE responses must not be gzipped by intermediaries or the stream will buffer. Also disable proxy buffering (X-Accel-Buffering: no on nginx).
HTTP header example
Response header
Content-Type: text/event-stream; charset=utf-8Reference
HTML Living Standard — Server-Sent Events