Expand description
Embedded HTTP server with REST-style routing.
Wraps the oveRTOS ove_httpd_* API. The server runs on a background
task; routes are registered with route and dispatched to
Handler callbacks that receive a Request / Response pair.
The server is a singleton (one per process), so start/stop/route are free functions rather than methods on a struct.
Modules§
Structs§
- Request
- HTTP request passed to a route handler.
- Response
- HTTP response writer passed to a route handler.
Functions§
- log_
append - Append a log line to the httpd log ring buffer.
- register_
builtin_ routes - Register the built-in dashboard routes (
/api/info,/api/leds, etc.). - route
- Register a route handler.
- set_
netif - Bind the HTTP server to a specific network interface.
- start
- Start the HTTP server on the given port.
- stop
- Stop the HTTP server and close the listening socket.
Type Aliases§
- Handler
- Route handler callback.