pub fn expect<F, X1>(self, expect: F) -> HttpServiceBuilder<T, S, X1, U>
    where
        F: IntoServiceFactory<X1, Request>,
        X1: ServiceFactory<Request, Config = (), Response = Request>,
        X1::Error: Into<Response<AnyBody>>,
        X1::InitError: fmt::Debug,
    {
        HttpServiceBuilder {
            keep_alive: self.keep_alive,
            client_timeout: self.client_timeout,
            client_disconnect: self.client_disconnect,
            secure: self.secure,
            local_addr: self.local_addr,
            expect: expect.into_factory(),
            upgrade: self.upgrade,
            on_connect_ext: self.on_connect_ext,
            _phantom: 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<F, X1>(self, expect: F) -> HttpServiceBuilder<T, S, X1, U>
    where
        F: IntoServiceFactory<X1, Request>,
        X1: ServiceFactory<Request, Config = (), Response = Request>,
        X1::Error: Into<Response<AnyBody>>,
        X1::InitError: fmt::Debug,
    {
        HttpServiceBuilder {
            keep_alive: self.keep_alive,
            client_timeout: self.client_timeout,
            client_disconnect: self.client_disconnect,
            secure: self.secure,
            local_addr: self.local_addr,
            expect: expect.into_factory(),
            upgrade: self.upgrade,
            on_connect_ext: self.on_connect_ext,
            _phantom: PhantomData,
        }
    }
pub fn expect < F , X1 > ( self , expect : F ) -> HttpServiceBuilder < T , S , X1 , U > where F : IntoServiceFactory < X1 , Request > , X1 : ServiceFactory < Request , Config = ( ) , Response = Request > , X1 :: Error : Into < Response < AnyBody > > , X1 :: InitError : fmt :: Debug , { HttpServiceBuilder { keep_alive : self . keep_alive , client_timeout : self . client_timeout , client_disconnect : self . client_disconnect , secure : self . secure , local_addr : self . local_addr , expect : expect . into_factory ( ) , upgrade : self . upgrade , on_connect_ext : self . on_connect_ext , _phantom : PhantomData , } }
Provide service for `EXPECT: 100-Continue` support.
Provide service for ` EXPECT : 100 - Continue ` support .
self
expect
F
self
expect
F