web_server 0.4.2

Small and dependency-less crate for creating HTTP servers
Documentation
1
2
3
4
5
6
7
use std::path::Path;

fn main() {
    web_server::new()
        .get("/", Box::new(|_, _| Path::new("examples/sw.png").into()))
        .launch(8080);
}