1
0
mirror of https://github.com/fafhrd91/actix-web synced 2025-09-02 17:46:38 +02:00

better handler function ergonimics

This commit is contained in:
Nikolay Kim
2017-10-29 21:39:59 -07:00
parent 8aa20c6261
commit 4e216701c0
6 changed files with 25 additions and 15 deletions

View File

@@ -180,7 +180,7 @@ impl<S> ApplicationBuilder<S> where S: 'static {
/// .resource("/test", |r| {
/// r.get::<MyRoute>();
/// r.handler(Method::HEAD, |req, payload, state| {
/// httpcodes::HTTPMethodNotAllowed
/// Ok(httpcodes::HTTPMethodNotAllowed)
/// });
/// })
/// .finish();