pub(crate) fn with_config<F: IntoServiceFactory<S>>(
        cfg: ServiceConfig,
        service: F,
    ) -> Self {
        H2Service {
            on_connect: None,
            srv: service.into_factory(),
            handshake_timeout: cfg.0.ssl_handshake_timeout,
            _t: PhantomData,
            cfg,
        }
    }
/// 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 {
        H2Service {
            on_connect: None,
            srv: service.into_factory(),
            handshake_timeout: cfg.0.ssl_handshake_timeout,
            _t: PhantomData,
            cfg,
        }
    }
pub ( crate ) fn with_config < F : IntoServiceFactory < S > > ( cfg : ServiceConfig , service : F , ) -> Self { H2Service { on_connect : None , srv : service . into_factory ( ) , handshake_timeout : cfg . 0 . ssl_handshake_timeout , _t : PhantomData , cfg , } }
Create new `HttpService` instance with config.
Create new ` HttpService ` instance with config .
cfg
ServiceConfig
service
F