7 ms·
I can't speak for the actix-web maintainers but I did find this in their examples: #[get("/resource1/{name}/index.html")] fn index(req: HttpRequest, na
by killercup 7y ago
I can't speak for the actix-web maintainers but I did find this in their examples:
#[get("/resource1/{name}/index.html")]
fn index(req: HttpRequest, name: web::Path<String>) -> String {
println!("REQ: {:?}", req);
format!("Hello: {}!\r\n", name)
}
see https://github.com/actix/actix-web/blob/e399e01a22b8a848ecbbc21c362878cd59a4342e/examples/basic.rs#L7-L11 https://github.com/actix/actix-web/blob/e399e01a22b8a848ecbb...