mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 22:49:21 +02:00
update guard doc test
This commit is contained in:
@ -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()))
|
||||
//! );
|
||||
//! }
|
||||
|
Reference in New Issue
Block a user