pub fn upgrade<U1>(self, upgrade: Option<U1>) -> HttpService<F, S, B, X, U1>
    where
        U1: ServiceFactory<(Request, Io<F>, h1::Codec), Response = ()>,
        U1::Error: fmt::Display + error::Error,
        U1::InitError: fmt::Debug,
    {
        HttpService {
            upgrade,
            cfg: self.cfg,
            srv: self.srv,
            expect: self.expect,
            on_request: self.on_request,
            _t: marker::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<F, S, B, X, U1>
    where
        U1: ServiceFactory<(Request, Io<F>, h1::Codec), Response = ()>,
        U1::Error: fmt::Display + error::Error,
        U1::InitError: fmt::Debug,
    {
        HttpService {
            upgrade,
            cfg: self.cfg,
            srv: self.srv,
            expect: self.expect,
            on_request: self.on_request,
            _t: marker::PhantomData,
        }
    }
pub fn upgrade < U1 > ( self , upgrade : Option < U1 > ) -> HttpService < F , S , B , X , U1 > where U1 : ServiceFactory < ( Request , Io < F > , h1 :: Codec ) , Response = ( ) > , U1 :: Error : fmt :: Display + error :: Error , U1 :: InitError : fmt :: Debug , { HttpService { upgrade , cfg : self . cfg , srv : self . srv , expect : self . expect , on_request : self . on_request , _t : marker :: PhantomData , } }
Provide service for custom `Connection: UPGRADE` support.
Provide service for custom ` Connection : UPGRADE ` support .
self
upgrade
Option<U1>
self
upgrade
Option<U1>