Skip to main content

Module http_server

Module http_server 

Source
Expand description

HTTP replication server exposing 3 pull-only endpoints.

Endpoints: GET /merkle → MessagePack {root: Vec<u8>} GET /segments → MessagePack [{segment_id, segment_hash}] GET /segments/{hash_hex} → raw segment bytes (application/octet-stream)

All endpoints support ?debug=json to re-serialize as JSON for human inspection (D07).

Engine access is serialized via Arc<Mutex<Engine>> — correct for single-writer (D08).

Structs§

HttpReplicationServer
HTTP replication server wrapping an Arc<Mutex<Engine>>.