Skip to main content

serve

Function serve 

Source
pub fn serve(
    kb: KnowledgeBase,
    bind: &str,
    port: u16,
    require_token: bool,
) -> Result<()>
Expand description

Start the web server and block on the accept loop until the process is killed.

  • bind / port — listen address; defaults to 127.0.0.1:8788 via the CLI.
  • require_token — when true (default), every governance (POST) endpoint requires the printed token in the X-Innate-Token header. --no-token disables it.