Skip to main content

build_from_file

Function build_from_file 

Source
pub fn build_from_file() -> (ConfigDrivenApp, Vec<JoinHandle<()>>)
Expand description

Build a ConfigDrivenApp from rws.config.toml and spawn L4/WS proxy threads. Returns the app and a list of background thread handles. Problems ProxyConfig::validate finds are printed first (the same findings rws --check reports). The returned app reloads its routes when the configuration is reloaded (SIGHUP, POST /admin/config/reload) — see ConfigDrivenApp::reload_from_file.