pub(crate) fn with_config<U: IntoServiceFactory<S, Request>>(
        cfg: ServiceConfig,
        service: U,
    ) -> Self {
        HttpService {
            cfg,
            srv: service.into_factory(),
            expect: h1::ExpectHandler,
            upgrade: None,
            on_request: cell::RefCell::new(None),
            _t: marker::PhantomData,
        }
    }
/// Create new `HttpService` instance with config.
Create new `HttpService` instance with config.
Create new ` HttpService ` instance with config .
pub(crate) fn with_config<U: IntoServiceFactory<S, Request>>(
        cfg: ServiceConfig,
        service: U,
    ) -> Self {
        HttpService {
            cfg,
            srv: service.into_factory(),
            expect: h1::ExpectHandler,
            upgrade: None,
            on_request: cell::RefCell::new(None),
            _t: marker::PhantomData,
        }
    }
pub ( crate ) fn with_config < U : IntoServiceFactory < S , Request > > ( cfg : ServiceConfig , service : U , ) -> Self { HttpService { cfg , srv : service . into_factory ( ) , expect : h1 :: ExpectHandler , upgrade : None , on_request : cell :: RefCell :: new ( None ) , _t : marker :: PhantomData , } }
Create new `HttpService` instance with config.
Create new ` HttpService ` instance with config .
cfg
ServiceConfig
service
U
cfg
ServiceConfig
service
U