Skip to main content

start_server_with_host_routes

Function start_server_with_host_routes 

Source
pub async fn start_server_with_host_routes(
    config_manager: Arc<ConfigManager>,
    listener: TcpListener,
    a2a_grpc_listener: TcpListener,
    mcp_config_path: Option<PathBuf>,
    ready: Sender<SocketAddr>,
    http_shutdown: Option<CancellationToken>,
    process_shutdown: Option<CancellationToken>,
    host_routes: Router<AppState>,
) -> Result<()>
Expand description

Compose trusted-host routes under the ordinary server’s production identity, governance and resource lifecycle. Callers own both bound listeners and must await shutdown. This does not install routes from network or configuration input, grant a verified identity, or provide the sidecar’s launch-token guard.