applySseStreamHeaders

Set the SSE upgrade headers (see sseStreamHeaders) on a response, leaving the caller to set contentType. Applies the draft-only X-Accel-Buffering header only when isDraft is true.

@safe
void
applySseStreamHeaders
(
HTTPServerResponse res
,
bool isDraft
)