pub fn serve<F>(
broker: &PathBroker,
policy: &StreamPolicy,
request: &Request<Vec<u8>>,
respond: F,
)Expand description
Serve one request. Validation (id, mime, stat, range) is synchronous and cheap; only the body
read runs on a dedicated thread, then respond is called from there.