pub fn new<U: IntoServiceFactory<S, Request>>(service: U) -> Self {
        let cfg = ServiceConfig::new(
            KeepAlive::Timeout(Seconds(5)),
            Millis(5_000),
            Seconds::ONE,
            Millis(5_000),
        );

        HttpService {
            cfg,
            srv: service.into_factory(),
            expect: h1::ExpectHandler,
            upgrade: None,
            on_request: cell::RefCell::new(None),
            _t: marker::PhantomData,
        }
    }
/// Create new `HttpService` instance.
Create new `HttpService` instance.
Create new ` HttpService ` instance .
pub fn new<U: IntoServiceFactory<S, Request>>(service: U) -> Self {
        let cfg = ServiceConfig::new(
            KeepAlive::Timeout(Seconds(5)),
            Millis(5_000),
            Seconds::ONE,
            Millis(5_000),
        );
        HttpService {
            cfg,
            srv: service.into_factory(),
            expect: h1::ExpectHandler,
            upgrade: None,
            on_request: cell::RefCell::new(None),
            _t: marker::PhantomData,
        }
    }
pub fn new < U : IntoServiceFactory < S , Request > > ( service : U ) -> Self { let cfg = ServiceConfig :: new ( KeepAlive :: Timeout ( Seconds ( 5 ) ) , Millis ( 5_000 ) , Seconds :: ONE , Millis ( 5_000 ) , ) ; HttpService { cfg , srv : service . into_factory ( ) , expect : h1 :: ExpectHandler , upgrade : None , on_request : cell :: RefCell :: new ( None ) , _t : marker :: PhantomData , } }
Create new `HttpService` instance.
Create new ` HttpService ` instance .
service
U
service
U