summaryrefslogtreecommitdiff
path: root/vendor/axum/src/docs/handlers_intro.md
blob: 4b42d4204e68a35d893e51b49353658b26e5264f (plain)
1
2
3
4
5
6
7
8
In axum a "handler" is an async function that accepts zero or more
["extractors"](crate::extract) as arguments and returns something that
can be converted [into a response](crate::response).

Handlers are where your application logic lives and axum applications are built
by routing between handlers.

[`debug_handler`]: https://docs.rs/axum-macros/latest/axum_macros/attr.debug_handler.html