Skip to main content

Module builder

Module builder 

Source
Expand description

Builder: converts a ProxyConfig into a live ConfigDrivenApp with health checkers and L4/WS proxy threads.

Functions§

build
Build a ConfigDrivenApp from a ProxyConfig struct.
build_from_file
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.