pub fn new<F: IntoServiceFactory<S>>(service: F) -> Self {
        let cfg = ServiceConfig::new(KeepAlive::Timeout(5), 5000, 0, false, None);

        HttpService {
            cfg,
            srv: service.into_factory(),
            expect: h1::ExpectHandler,
            upgrade: None,
            on_connect: None,
            on_connect_ext: None,
            _t: PhantomData,
        }
    }
/// Create new `HttpService` instance.
Create new `HttpService` instance.
Create new ` HttpService ` instance .
pub fn new<F: IntoServiceFactory<S>>(service: F) -> Self {
        let cfg = ServiceConfig::new(KeepAlive::Timeout(5), 5000, 0, false, None);
        HttpService {
            cfg,
            srv: service.into_factory(),
            expect: h1::ExpectHandler,
            upgrade: None,
            on_connect: None,
            on_connect_ext: None,
            _t: PhantomData,
        }
    }
pub fn new < F : IntoServiceFactory < S > > ( service : F ) -> Self { let cfg = ServiceConfig :: new ( KeepAlive :: Timeout ( 5 ) , 5000 , 0 , false , None ) ; HttpService { cfg , srv : service . into_factory ( ) , expect : h1 :: ExpectHandler , upgrade : None , on_connect : None , on_connect_ext : None , _t : PhantomData , } }
Create new `HttpService` instance.
Create new ` HttpService ` instance .
service
F
service
F