Skip to main content

Crate diode_http

Crate diode_http 

Source

Re-exports§

pub use axum;

Modules§

routing
Routing between Services and handlers.

Structs§

ControlServerConfig
Configuration for the control HTTP server, read from the control_server config section.
ControlServerPlugin
Plugin that runs the control HTTP server.
HealthCheckError
Error reported by a failed health check: the failing check’s name and a message.
HealthClient
Client for probing a service’s /health endpoint over HTTP.
HealthRouter
Router exposing GET /health on the control server.
HttpServerConfig
Configuration for the public HTTP server, read from the http_server config section.
HttpServerPlugin
Plugin that runs the public HTTP server.
PingHandler
Router exposing GET /ping, which always returns pong.
Router
The router type for composing handlers and services.

Traits§

AddControlRouterExt
Registers concrete RouterBuilder instances on the control HTTP server.
AddControlRouterServiceExt
Registers routers resolved from the dependency-injection container on the control HTTP server.
AddHealthCheckExt
Registers concrete HealthCheck instances on the control server.
AddHealthCheckServiceExt
Registers health checks resolved from the dependency-injection container.
AddMiddlewareExt
Registers concrete Middleware instances so the router macros can resolve them.
AddMiddlewareServiceExt
Registers middleware resolved from the dependency-injection container.
AddRouterExt
Registers concrete RouterBuilder instances on the public HTTP server.
AddRouterServiceExt
Registers routers resolved from the dependency-injection container on the public HTTP server.
HealthCheck
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).
RouterBuilder
Builds the axum::Router contributed by a type to an HTTP server.

Type Aliases§

Request
Type alias for http::Request whose body type defaults to Body, the most common body type used with axum.
Response
Type alias for http::Response whose body type defaults to Body, the most common body type used with axum.

Attribute Macros§

router