[][src]Function tide::sse::upgrade

pub fn upgrade<F, Fut, State>(req: Request<State>, handler: F) -> Response where
    State: Clone + Send + Sync + 'static,
    F: Fn(Request<State>, Sender) -> Fut + Send + Sync + 'static,
    Fut: Future<Output = Result<()>> + Send + 'static, 

Upgrade an existing HTTP connection to an SSE connection.