Skip to main content

run_http_dynamic

Function run_http_dynamic 

Source
pub async fn run_http_dynamic(state: AppState) -> Result<()>
Expand description

Convenience: bind dynamically (7070..=7079, OS fallback) and serve.

Why: trusty-memory serve with no --http flag is the canonical launchd-managed daemon entry point. Dynamic binding lets a stale daemon or a hand-spawned serve --http 127.0.0.1:7070 coexist without breaking the launchd-managed instance. What: calls bind_dynamic_port then run_http_on. Test: integration via trusty-memory serve + cat ~/.trusty-memory/http_addr.