pub(crate) fn h1<F, S, B>(
        stream: Io,
        service: F,
    ) -> Dispatcher<Io, S, B, ExpectHandler, UpgradeHandler<Io>>
    where
        F: IntoService<S>,
        S: Service<Request = Request>,
        S::Error: ResponseError,
        S::Response: Into<Response<B>>,
        B: MessageBody,
    {
        Dispatcher::new(
            Rc::new(DispatcherConfig::new(
                ServiceConfig::default(),
                service.into_service(),
                ExpectHandler,
                None,
            )),
            stream,
            None,
            None,
        )
    }
/// Create http/1 dispatcher.
Create http/1 dispatcher.
Create http / 1 dispatcher .
pub(crate) fn h1<F, S, B>(
        stream: Io,
        service: F,
    ) -> Dispatcher<Io, S, B, ExpectHandler, UpgradeHandler<Io>>
    where
        F: IntoService<S>,
        S: Service<Request = Request>,
        S::Error: ResponseError,
        S::Response: Into<Response<B>>,
        B: MessageBody,
    {
        Dispatcher::new(
            Rc::new(DispatcherConfig::new(
                ServiceConfig::default(),
                service.into_service(),
                ExpectHandler,
                None,
            )),
            stream,
            None,
            None,
        )
    }
pub ( crate ) fn h1 < F , S , B > ( stream : Io , service : F , ) -> Dispatcher < Io , S , B , ExpectHandler , UpgradeHandler < Io > > where F : IntoService < S > , S : Service < Request = Request > , S :: Error : ResponseError , S :: Response : Into < Response < B > > , B : MessageBody , { Dispatcher :: new ( Rc :: new ( DispatcherConfig :: new ( ServiceConfig :: default ( ) , service . into_service ( ) , ExpectHandler , None , ) ) , stream , None , None , ) }
Create http/1 dispatcher.
Create http / 1 dispatcher .
stream
Io
service
F