pub async fn run_proxy(
route_table: Arc<RwLock<HashMap<String, Vec<RouteTarget>>>>,
wasm_triggers: SharedWasmTriggers,
wasm_invoker: Option<WasmInvoker>,
port: u16,
) -> Result<()>Expand description
Run the reverse proxy on the given port.
Routes by Host header to container backends, and by path pattern to Wasm components.
ยงErrors
Returns an error if the proxy fails to bind to the port.