[go: up one dir, main page]

upgrade

Function upgrade 

Source
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,
Expand description

Upgrade an existing HTTP connection to an SSE connection.