Skip to main content

Crate ares_http

Crate ares_http 

Source
Expand description

HTTP adapter plugin: Axum router, JWT auth, middleware, Overlay, TOON.

Re-exports§

pub use config::AuthConfig;
pub use config::ServerConfig;
pub use error::app_error_into_response;
pub use error::HttpError;
pub use overlay::AresConfig;
pub use overlay::AresConfigManager;
pub use overlay::ConfigError;
pub use overlay::Overlay;
pub use overlay::OverlayConfig;
pub use overlay::OverlayPlugin;
pub use toon_config::DynamicConfigManager;
pub use ares_agent as agents;

Modules§

config
HTTP-facing auth and server configuration (moves to ares-http in Phase 7).
db
error
HTTP mapping for ares_types::AppError.
memory
Memory management module for conversation context and user memory.
models
overlay
TOML-based configuration for A.R.E.S
pipeline_hook
Cycle-break: HTTP/trigger code cannot name ares-server::pipeline. Re-exports [ares_agent::pipeline] fan-out types.
toon_config
TOON-based dynamic configuration for A.R.E.S
types
Core types used throughout the A.R.E.S server.
utils

Structs§

ConfigBasedLLMFactory
Configuration-based LLM client factory using the provider registry
EmergencyStop
Global agent-execution kill switch.
Http
Built Axum router provided by the Http plugin. Bind happens in run_server.
HttpPlugin
Typed installer for Http. Host/port in ServerConfig are unused at apply time; the binary binds Http.router.

Functions§

build_router
Build the application router from a Cordis context.
cordis_routes
Cordis health routes used as the live HTTP base.
register_plugins
Register AuthService and Http loader factories. Overlay is registered by ares-server so config watching stays server-owned.

Type Aliases§

Result
Handler result that maps ares_types::AppError through HttpError.