1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-06-25 06:39:22 +02:00

rename async to a

This commit is contained in:
Nikolay Kim
2017-12-04 16:09:22 -08:00
parent e98972e93b
commit f4e9fc7b6a
7 changed files with 137 additions and 110 deletions

View File

@ -71,7 +71,7 @@ fn main() {
// with path parameters
.resource("/user/{name}/", |r| r.route().method(Method::GET).f(with_param))
// async handler
.resource("/async/{name}", |r| r.route().method(Method::GET).async(index_async))
.resource("/async/{name}", |r| r.route().method(Method::GET).a(index_async))
// redirect
.resource("/", |r| r.route().method(Method::GET).f(|req| {
println!("{:?}", req);