|
|
|
|
|
by willglynn
3032 days ago
|
|
How about Actix? From the README at https://github.com/actix/actix-web#example: extern crate actix_web;
use actix_web::*;
fn index(req: HttpRequest) -> String {
format!("Hello {}!", &req.match_info()["name"])
}
fn main() {
HttpServer::new(
|| Application::new()
.resource("/{name}", |r| r.f(index)))
.bind("127.0.0.1:8080").unwrap()
.run();
}
|
|