Skip to main content

Crate mbr_server

Crate mbr_server 

Source
Expand description

mbr-server — mbr’s HTTP server.

The axum router and its handlers (server), the live-reload change channel, the edit/move/rename endpoints and the modules only they use: atomic file writes (file_write), inbound-link grepping (link_grep) and link rewriting on move (link_rewrite). With the watcher feature, the filesystem watcher (watcher, notify) that feeds live reload and index invalidation from disk; without it the change channel still carries the server’s own writes.

Built on mbr-core; nothing here is reachable from the core.

Re-exports§

pub use errors::ServerError;
pub use server::EmbeddedStorage;
pub use server::Server;
pub use server::ServerConfig;

Modules§

errors
Errors owned by the HTTP server.
file_write
Writing the user’s files in place: atomic replacement and per-file locks.
link_grep
Grep-based inbound link discovery for server mode.
link_rewrite
Link rewriting for file moves/renames (server-mode editing endpoints).
server