pub fn expect<X1>(self, expect: X1) -> HttpService<T, S, B, X1, U>
    where
        X1: ServiceFactory<Config = (), Request = Request, Response = Request>,
        X1::Error: Into<Error>,
        X1::InitError: fmt::Debug,
        <X1::Service as Service>::Future: 'static,
    {
        HttpService {
            expect,
            cfg: self.cfg,
            srv: self.srv,
            upgrade: self.upgrade,
            on_connect: self.on_connect,
            on_connect_ext: self.on_connect_ext,
            _t: PhantomData,
        }
    }
/// Provide service for `EXPECT: 100-Continue` support.
///
/// Service get called with request that contains `EXPECT` header.
/// Service must return request in case of success, in that case
/// request will be forwarded to main service.
Provide service for `EXPECT: 100-Continue` support.
Service get called with request that contains `EXPECT` header.
Service must return request in case of success, in that case
request will be forwarded to main service.
Provide service for ` EXPECT : 100 - Continue ` support . Service get called with request that contains ` EXPECT ` header . Service must return request in case of success in that case request will be forwarded to main service .
pub fn expect<X1>(self, expect: X1) -> HttpService<T, S, B, X1, U>
    where
        X1: ServiceFactory<Config = (), Request = Request, Response = Request>,
        X1::Error: Into<Error>,
        X1::InitError: fmt::Debug,
        <X1::Service as Service>::Future: 'static,
    {
        HttpService {
            expect,
            cfg: self.cfg,
            srv: self.srv,
            upgrade: self.upgrade,
            on_connect: self.on_connect,
            on_connect_ext: self.on_connect_ext,
            _t: PhantomData,
        }
    }
pub fn expect < X1 > ( self , expect : X1 ) -> HttpService < T , S , B , X1 , U > where X1 : ServiceFactory < Config = ( ) , Request = Request , Response = Request > , X1 :: Error : Into < Error > , X1 :: InitError : fmt :: Debug , < X1 :: Service as Service > :: Future : ' static , { HttpService { expect , cfg : self . cfg , srv : self . srv , upgrade : self . upgrade , on_connect : self . on_connect , on_connect_ext : self . on_connect_ext , _t : PhantomData , } }
Provide service for `EXPECT: 100-Continue` support.
Provide service for ` EXPECT : 100 - Continue ` support .
self
expect
X1
self
expect
X1