Function tide::new[][src]

pub fn new() -> Server<()>
Expand description

Create a new Tide server.

Examples

let mut app = tide::new();
app.at("/").get(|_| async { Ok("Hello, world!") });
app.listen("127.0.0.1:8080").await?;