pub fn with_middleware<M: Middleware>(mut self, middleware: M) -> Self {
        Arc::get_mut(&mut self.inner)
            .unwrap()
            .middlewares
            .push(Arc::new(middleware));
        self
    }
/// Put a middleware into the server.
Put a middleware into the server.
Put a middleware into the server .
pub fn with_middleware<M: Middleware>(mut self, middleware: M) -> Self {
        Arc::get_mut(&mut self.inner)
            .unwrap()
            .middlewares
            .push(Arc::new(middleware));
        self
    }
pub fn with_middleware < M : Middleware > ( mut self , middleware : M ) -> Self { Arc :: get_mut ( & mut self . inner ) . unwrap ( ) . middlewares . push ( Arc :: new ( middleware ) ) ; self }
Put a middleware into the server.
Put a middleware into the server .
mut self
middleware
M
mut self
middleware
M