[−][src]Function tide::sse::upgrade
pub fn upgrade<F, Fut, State>(req: Request<State>, handler: F) -> Response where
State: Send + Sync + 'static,
F: Fn(Request<State>, Sender) -> Fut + Send + Sync + 'static,
Fut: Future<Output = Result<()>> + Send + Sync + 'static,
Upgrade an existing HTTP connection to an SSE connection.