acceptsEventStream

Whether the given Accept request-header value admits a text/event-stream response. The standalone GET stream the MCP endpoint opens is always an SSE stream, so a client whose Accept provably excludes that media type cannot consume what the server would send. A media type is admitted by an exact text/event-stream token, by the text/* subtype wildcard, or by the */* full wildcard; quality and other parameters after a ; are ignored. An empty value (no Accept header) is treated permissively as acceptable, since the transport never required clients to send one. Only a header that names media types and omits any matching one returns false.

@safe
bool
acceptsEventStream
(
string accept
)