mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-27 17:52:56 +01:00
update guard doc test
This commit is contained in:
parent
351df84cca
commit
1a871d708e
@ -72,7 +72,7 @@ actix-router = "0.1.0"
|
||||
actix-rt = "0.2.2"
|
||||
actix-web-codegen = "0.1.0-alpha.1"
|
||||
actix-http = { version = "0.1.0-alpha.2", features=["fail"] }
|
||||
actix-server = "0.4.1"
|
||||
actix-server = "0.4.2"
|
||||
actix-server-config = "0.1.0"
|
||||
actix-threadpool = "0.1.0"
|
||||
awc = { version = "0.1.0-alpha.2", optional = true }
|
||||
|
@ -19,7 +19,7 @@
|
||||
//! App::new().service(web::resource("/index.html").route(
|
||||
//! web::route()
|
||||
//! .guard(guard::Post())
|
||||
//! .guard(|head: &dev::RequestHead| head.method == http::Method::GET)
|
||||
//! .guard(guard::fn_guard(|head| head.method == http::Method::GET))
|
||||
//! .to(|| HttpResponse::MethodNotAllowed()))
|
||||
//! );
|
||||
//! }
|
||||
|
Loading…
Reference in New Issue
Block a user