fire-http 0.5.0

Http async library based on hyper and tokio
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use fire::get;
use fire_http as fire;

#[get("/")]
fn hello_world() -> &'static str {
	"Hello, World!"
}

#[tokio::main]
async fn main() {
	let mut server = fire::build("0.0.0.0:3000")
		.await
		.expect("Address could not be parsed");

	server.add_route(hello_world);

	server.ignite().await.unwrap();
}