pub fn finish<F, B>(self, service: F) -> HttpService<T, S, B, X, U>
    where
        F: IntoServiceFactory<S, Request>,
        S::Error: Into<Response<AnyBody>> + 'static,
        S::InitError: fmt::Debug,
        S::Response: Into<Response<B>> + 'static,

        B: MessageBody + 'static,
        B::Error: Into<Box<dyn StdError>>,
    {
        let cfg = ServiceConfig::new(
            self.keep_alive,
            self.client_timeout,
            self.client_disconnect,
            self.secure,
            self.local_addr,
        );

        HttpService::with_config(cfg, service.into_factory())
            .expect(self.expect)
            .upgrade(self.upgrade)
            .on_connect_ext(self.on_connect_ext)
    }
/// Finish service configuration and create `HttpService` instance.
Finish service configuration and create `HttpService` instance.
Finish service configuration and create ` HttpService ` instance .
pub fn finish<F, B>(self, service: F) -> HttpService<T, S, B, X, U>
    where
        F: IntoServiceFactory<S, Request>,
        S::Error: Into<Response<AnyBody>> + 'static,
        S::InitError: fmt::Debug,
        S::Response: Into<Response<B>> + 'static,
        B: MessageBody + 'static,
        B::Error: Into<Box<dyn StdError>>,
    {
        let cfg = ServiceConfig::new(
            self.keep_alive,
            self.client_timeout,
            self.client_disconnect,
            self.secure,
            self.local_addr,
        );
        HttpService::with_config(cfg, service.into_factory())
            .expect(self.expect)
            .upgrade(self.upgrade)
            .on_connect_ext(self.on_connect_ext)
    }
pub fn finish < F , B > ( self , service : F ) -> HttpService < T , S , B , X , U > where F : IntoServiceFactory < S , Request > , S :: Error : Into < Response < AnyBody > > + ' static , S :: InitError : fmt :: Debug , S :: Response : Into < Response < B > > + ' static , B : MessageBody + ' static , B :: Error : Into < Box < dyn StdError > > , { let cfg = ServiceConfig :: new ( self . keep_alive , self . client_timeout , self . client_disconnect , self . secure , self . local_addr , ) ; HttpService :: with_config ( cfg , service . into_factory ( ) ) . expect ( self . expect ) . upgrade ( self . upgrade ) . on_connect_ext ( self . on_connect_ext ) }
Finish service configuration and create `HttpService` instance.
Finish service configuration and create ` HttpService ` instance .
self
service
F
self
service
F