Function hyper::upgrade::on

source ·
pub fn on<T: CanUpgrade>(msg: T) -> OnUpgrade 
Expand description

Gets a pending HTTP upgrade from this message.

This can be called on the following types:

  • http::Request<B>
  • http::Response<B>
  • &mut http::Request<B>
  • &mut http::Response<B>