Skip to main content

Crate aro_web

Crate aro_web 

Source
Expand description

HTTP/ADR layer for the Aro web framework.

This crate provides the web adapter built on Axum. Axum is re-exported at the crate root as an intentional escape hatch: advanced features (auth, WebSockets, OpenAPI, static files, etc.) are delegated to the Axum/tower ecosystem rather than wrapped by Aro.

Re-exports§

pub use axum;

Modules§

cache
ETag and conditional response helpers.
config
Layered configuration loading for Aro applications.
dep
Dependency injection extractor for Aro actions.
error
Error types and JSON error response mapping for the Aro web framework.
fallback
Framework-level fallback handlers for unmatched routes.
health
Health check endpoint.
json_body
JSON body extractor with consistent error responses.
middleware
Built-in middleware helpers for common cross-cutting concerns.
state
Type-map service container for dependency injection.

Macros§

routes
Collect route handlers into an axum::Router<AroState>.

Structs§

App
Builder for an Aro web application.
DefaultBodyLimit
Layer for configuring the default request body limit.
Event
Server-sent event
KeepAlive
Configure the interval between keep-alive messages, the content of each message, and the associated stream.
Sse
An SSE response