Skip to main content

Module builder

Module builder 

Source
Expand description

API server construction and the global middleware stack.

setup_api_server composes the route tree and applies the global layers (body limit, analytics, context, session, CORS, trailing-slash, trace and served-by headers, content negotiation, security headers) in the order they must run, producing an ApiServer that binds and serves with graceful shutdown.

Structs§

ApiServer

Functions§

authenticated_discovery_router
discovery_router
handle_agents_discovery
handle_core_discovery
handle_health
handle_mcp_discovery
handle_root_discovery
setup_api_server