pub async fn run_http(project: PathBuf, port: u16) -> Result<()>Expand description
Run tcode serve --http to completion.
Why: the top-level entry point main.rs calls for the serve --http
subcommand.
What: builds the router + session registry, logs start/stop to stderr,
and enters http::run_http bound to port (0 = OS-assigned
ephemeral port), returning when it returns (SIGTERM/SIGINT). On return,
calls SessionRegistry::shutdown_executions (bounded by
[SHUTDOWN_GRACE]) — see run_stdio’s docs for why.
Test: run_stdio_router_recognises_proof_of_life_methods covers the
shared router assembly; http::tests cover the routing/dispatch logic.