Expand description
DocsServer — loopback HTTP server that renders the embedded
markdown tree as HTML for airgapped end-users.
§Routes
| Method + path | Response |
|---|---|
GET / | Rendered index page linking every entry |
GET /<path>.html | Rendered markdown page |
GET /assets/<path> | Raw asset bytes (images etc.) |
GET /search?q=<text> | JSON [{ path, title, snippet, score }] |
§Security policy
- Loopback bind by default (
127.0.0.1:0); non-loopback binds require an explicit--bindflag at the CLI layer. - No authentication, no TLS — it’s a per-user local tool, not a production surface.
- Every path in the
.html//assets/routes issafe_join-equivalent checked before reachingrtb-assets(traversal patterns rejected). - Graceful shutdown via a
CancellationTokenchild ofApp::shutdown.
Structs§
- Docs
Server - Loopback HTTP server that renders the embedded docs tree as HTML.