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