Actix-web 0.7.9 发布内容: 添加
修复
Actix-web 0.7.910发布内容: 修复
Actix-web 0.7.911发布内容: 修复
Actix-web介绍:Actix web是Rust的一个简单,实用且极其快速的Web框架。
文档和社区资源extern crate actix_web; use actix_web::{http, server, App, Path, Responder}; fn index(info: Path<(u32, String)>) -> impl Responder { format!("Hello {}! id:{}", info.1, info.0) } fn main() { server::new( || App::new() .route("/{id}/{name}/index.html", http::Method::GET, index)) .bind("127.0.0.1:8080").unwrap() .run(); } |