pub fn new() -> Self {
        Server {
            inner: Arc::new(ServerInner {
                router: Router::default(),
                middlewares: Vec::new(),
                states: Arc::new(States::custom()),
            }),
        }
    }
/// Creates an empty instance of the server.
Creates an empty instance of the server.
Creates an empty instance of the server .
pub fn new() -> Self {
        Server {
            inner: Arc::new(ServerInner {
                router: Router::default(),
                middlewares: Vec::new(),
                states: Arc::new(States::custom()),
            }),
        }
    }
pub fn new ( ) -> Self { Server { inner : Arc :: new ( ServerInner { router : Router :: default ( ) , middlewares : Vec :: new ( ) , states : Arc :: new ( States :: custom ( ) ) , } ) , } }
Creates an empty instance of the server.
Creates an empty instance of the server .