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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user