pub(crate) fn h1<F, S, B>(
        stream: Io,
        service: F,
    ) -> Dispatcher<Base, S, B, ExpectHandler, UpgradeHandler<Base>>
    where
        F: IntoService<S, Request>,
        S: Service<Request>,
        S::Error: ResponseError + 'static,
        S::Response: Into<Response<B>>,
        B: MessageBody,
    {
        let config = ServiceConfig::new(
            Seconds(5).into(),
            Millis(1_000),
            Seconds::ZERO,
            Millis(5_000),
        );
        Dispatcher::new(
            nio::Io::new(stream),
            Rc::new(DispatcherConfig::new(
                config,
                service.into_service(),
                ExpectHandler,
                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<Base, S, B, ExpectHandler, UpgradeHandler<Base>>
    where
        F: IntoService<S, Request>,
        S: Service<Request>,
        S::Error: ResponseError + 'static,
        S::Response: Into<Response<B>>,
        B: MessageBody,
    {
        let config = ServiceConfig::new(
            Seconds(5).into(),
            Millis(1_000),
            Seconds::ZERO,
            Millis(5_000),
        );
        Dispatcher::new(
            nio::Io::new(stream),
            Rc::new(DispatcherConfig::new(
                config,
                service.into_service(),
                ExpectHandler,
                None,
                None,
            )),
        )
    }
pub ( crate ) fn h1 < F , S , B > ( stream : Io , service : F , ) -> Dispatcher < Base , S , B , ExpectHandler , UpgradeHandler < Base > > where F : IntoService < S , Request > , S : Service < Request > , S :: Error : ResponseError + ' static , S :: Response : Into < Response < B > > , B : MessageBody , { let config = ServiceConfig :: new ( Seconds ( 5 ) . into ( ) , Millis ( 1_000 ) , Seconds :: ZERO , Millis ( 5_000 ) , ) ; Dispatcher :: new ( nio :: Io :: new ( stream ) , Rc :: new ( DispatcherConfig :: new ( config , service . into_service ( ) , ExpectHandler , None , None , ) ) , ) }
Create http/1 dispatcher.
Create http / 1 dispatcher .
stream
Io
service
F
stream
Io
service
F