Re-exports§
pub use axum;
Modules§
Structs§
- Control
Server Config - Configuration for the control HTTP server, read from the
control_serverconfig section. - Control
Server Plugin - Plugin that runs the control HTTP server.
- Health
Check Error - Error reported by a failed health check: the failing check’s name and a message.
- Health
Client - Client for probing a service’s
/healthendpoint over HTTP. - Health
Router - Router exposing
GET /healthon the control server. - Http
Server Config - Configuration for the public HTTP server, read from the
http_serverconfig section. - Http
Server Plugin - Plugin that runs the public HTTP server.
- Ping
Handler - Router exposing
GET /ping, which always returnspong. - Router
- The router type for composing handlers and services.
Traits§
- AddControl
Router Ext - Registers concrete
RouterBuilderinstances on the control HTTP server. - AddControl
Router Service Ext - Registers routers resolved from the dependency-injection container on the control HTTP server.
- AddHealth
Check Ext - Registers concrete
HealthCheckinstances on the control server. - AddHealth
Check Service Ext - Registers health checks resolved from the dependency-injection container.
- AddMiddleware
Ext - Registers concrete
Middlewareinstances so the router macros can resolve them. - AddMiddleware
Service Ext - Registers middleware resolved from the dependency-injection container.
- AddRouter
Ext - Registers concrete
RouterBuilderinstances on the public HTTP server. - AddRouter
Service Ext - Registers routers resolved from the dependency-injection container on the public HTTP server.
- Health
Check - A named check reporting whether a part of the application is healthy.
- Middleware
- Middleware that wraps request handling on an HTTP server.
- Next
- The continuation passed to a
Middleware: runs the rest of the chain (the next middleware, or the route handler). - Router
Builder - Builds the
axum::Routercontributed by a type to an HTTP server.
Type Aliases§
- Request
- Type alias for
http::Requestwhose body type defaults toBody, the most common body type used with axum. - Response
- Type alias for
http::Responsewhose body type defaults toBody, the most common body type used with axum.