foxhole 0.4.0

A Blazingly-fast http framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use foxhole::{action::Html, Http1, resolve::Get, App, sys, Scope};

fn get(_get: Get) -> Html {
    Html(String::from("<h1> Foxhole! </h1>"))
}

fn main() {
    let scope = Scope::new(sys![get]);

    println!("Running on '127.0.0.1:8080'");

    App::builder(scope)
        .run::<Http1>("127.0.0.1:8080");
}