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§
- Server
Config - 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.