Module axum
Web application framework based on tokio.
See crate ::axum.
Modules
- body HTTP body utilities.
-
error_handling
Error handling model and utilities
[
HandleErrorLayer]: [tower::Service]:tower::Service[Infallible]: std::convert::Infallible [Response]: crate::response::Response [IntoResponse]: crate::response::IntoResponse -
extract
Types and traits for extracting data from requests.
FromRequestand [FromRequestParts]: [axum-extra]: https://docs.rs/axum-extra/latest/axum_extra/extract/index.html [body::Body]: crate::body::Body [Bytes]: crate::body::Bytes [customize-extractor-error]: https://github.com/tokio-rs/axum/blob/main/examples/customize-extractor-error/src/main.rs [HeaderMap]: https://docs.rs/http/latest/http/header/struct.HeaderMap.html [Request]: https://docs.rs/http/latest/http/struct.Request.html [RequestParts::body_mut]: crate::extract::RequestParts::body_mut [JsonRejection::JsonDataError]: rejection::JsonRejection::JsonDataError - handler Async functions that can be used to handle requests.
- middleware Utilities for writing middleware
- response Types and traits for generating responses.
-
routing
Routing between
Services and handlers. - serve Serve services.