async_sse/
handshake.rs

1/// Upgrade an HTTP connection into an SSE session.
2pub fn upgrade(headers: &mut impl AsMut<http_types::Headers>) {
3    let headers = headers.as_mut();
4    headers.insert("Cache-Control", "no-cache");
5    headers.insert("Content-Type", "text/event-stream");
6}