Module http_server

Module http_server 

Source
Expand description

HTTP server module for serving features data and embedded static files.

This module provides functionality to start an HTTP server that serves:

  • Features data as JSON at /features.json
  • Embedded static files from the compiled binary
  • A default index page at the root path

The server uses the warp web framework and supports CORS for cross-origin requests. Static files are embedded at compile time using the include_dir crate.

Structs§

ServerConfig
Configuration for the HTTP server

Functions§

serve_features_with_config_and_watching
Starts an HTTP server with custom configuration and optional file watching.
serve_features_with_watching
Starts an HTTP server with file watching for a specific directory.