0.2.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform
Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.
Apache-2.0 - Apache License 2.0Actori web is a small, pragmatic, and extremely fast rust web framework
Actori web is a simple, pragmatic and extremely fast web framework for Rust.
Dependencies:
[dependencies]
actori-web = "2"
actori-rt = "1"
Code:
use actori_web::{get, web, App, HttpServer, Responder};
#[get("/{id}/{name}/index.html")]
async fn index(info: web::Path<(u32, String)>) -> impl Responder {
format!("Hello {}! id:{}", info.1, info.0)
}
#[actori_rt::main]
async fn main() -> std::io::Result<()> {
HttpServer::new(|| App::new().service(index))
.bind("127.0.0.1:8080")?
.run()
.await
}
You may consider checking out this directory for more examples.
This project is licensed under either of
at your option.
Contribution to the actori-web crate is organized under the terms of the Contributor Covenant, the maintainer of actori-web, @fafhrd91, promises to intervene to uphold that code of conduct.