Expand description
Routing between Services and handlers.
Re-exports§
pub use self::method_routing::any;pub use self::method_routing::any_service;pub use self::method_routing::connect;pub use self::method_routing::connect_service;pub use self::method_routing::delete;pub use self::method_routing::delete_service;pub use self::method_routing::get;pub use self::method_routing::get_service;pub use self::method_routing::head;pub use self::method_routing::head_service;pub use self::method_routing::on;pub use self::method_routing::on_service;pub use self::method_routing::options;pub use self::method_routing::options_service;pub use self::method_routing::patch;pub use self::method_routing::patch_service;pub use self::method_routing::post;pub use self::method_routing::post_service;pub use self::method_routing::put;pub use self::method_routing::put_service;pub use self::method_routing::trace;pub use self::method_routing::trace_service;pub use self::method_routing::MethodRouter;
Modules§
- future
- Future types.
- method_
routing - Route to services and handlers based on HTTP methods.
Structs§
- Into
Make Service - A
MakeServicethat produces axum router services. - Method
Filter - A filter that matches one or more HTTP methods.
- Route
- How routes are stored inside a
Router. - Router
- The router type for composing handlers and services.
- Router
AsService - A
Routerconverted into a borrowedServicewith a fixed body type. - Router
Into Service - A
Routerconverted into an ownedServicewith a fixed body type.