tide 0.0.5

WIP modular web framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
#![feature(async_await)]

use http::status::StatusCode;
use tide::IntoResponse;

fn main() {
    let mut app = tide::App::new(());
    app.at("/").get(async || "Hello, world!");

    app.default_handler(async || "¯\\_(ツ)_/¯".with_status(StatusCode::NOT_FOUND));

    app.serve()
}