pub fn upgrade<U1>(self, upgrade: Option<U1>) -> HttpService<T, S, B, X, U1>
    where
        U1: ServiceFactory<
            Config = (),
            Request = (Request, Framed<T, h1::Codec>),
            Response = (),
        >,
        U1::Error: fmt::Display,
        U1::InitError: fmt::Debug,
        <U1::Service as Service>::Future: 'static,
    {
        HttpService {
            upgrade,
            cfg: self.cfg,
            srv: self.srv,
            expect: self.expect,
            on_connect: self.on_connect,
            on_connect_ext: self.on_connect_ext,
            _t: PhantomData,
        }
    }
/// Provide service for custom `Connection: UPGRADE` support.
///
/// If service is provided then normal requests handling get halted
/// and this service get called with original request and framed object.
Provide service for custom `Connection: UPGRADE` support.
If service is provided then normal requests handling get halted
and this service get called with original request and framed object.
Provide service for custom ` Connection : UPGRADE ` support . If service is provided then normal requests handling get halted and this service get called with original request and framed object .
pub fn upgrade<U1>(self, upgrade: Option<U1>) -> HttpService<T, S, B, X, U1>
    where
        U1: ServiceFactory<
            Config = (),
            Request = (Request, Framed<T, h1::Codec>),
            Response = (),
        >,
        U1::Error: fmt::Display,
        U1::InitError: fmt::Debug,
        <U1::Service as Service>::Future: 'static,
    {
        HttpService {
            upgrade,
            cfg: self.cfg,
            srv: self.srv,
            expect: self.expect,
            on_connect: self.on_connect,
            on_connect_ext: self.on_connect_ext,
            _t: PhantomData,
        }
    }
pub fn upgrade < U1 > ( self , upgrade : Option < U1 > ) -> HttpService < T , S , B , X , U1 > where U1 : ServiceFactory < Config = ( ) , Request = ( Request , Framed < T , h1 :: Codec > ) , Response = ( ) , > , U1 :: Error : fmt :: Display , U1 :: InitError : fmt :: Debug , < U1 :: Service as Service > :: Future : ' static , { HttpService { upgrade , cfg : self . cfg , srv : self . srv , expect : self . expect , on_connect : self . on_connect , on_connect_ext : self . on_connect_ext , _t : PhantomData , } }
Provide service for custom `Connection: UPGRADE` support.
Provide service for custom ` Connection : UPGRADE ` support .
self
upgrade
Option<U1>
self
upgrade
Option<U1>