pub async fn upgrade_response(parts: http::response::Parts, body: hyper::upgrade::OnUpgrade) -> UpgradeRes {
    matsu!(body).map(|upgraded| {
        let response = http::Response::from_parts(parts, hyper::Body::empty());
        (response, upgraded)
    })
}
///Utility to upgrade using hyper's upgrade mechanism
Utility to upgrade using hyper's upgrade mechanism
Utility to upgrade using hyper ' s upgrade mechanism
pub async fn upgrade_response(parts: http::response::Parts, body: hyper::upgrade::OnUpgrade) -> UpgradeRes {
    matsu!(body).map(|upgraded| {
        let response = http::Response::from_parts(parts, hyper::Body::empty());
        (response, upgraded)
    })
}
pub async fn upgrade_response ( parts : http :: response :: Parts , body : hyper :: upgrade :: OnUpgrade ) -> UpgradeRes { matsu ! ( body ) . map ( | upgraded | { let response = http :: Response :: from_parts ( parts , hyper :: Body :: empty ( ) ) ; ( response , upgraded ) } ) }
Utility to upgrade using hyper's upgrade mechanism
Utility to upgrade using hyper ' s upgrade mechanism
parts
http::response::Parts
body
hyper::upgrade::OnUpgrade