pub fn dispatch(daemon: &Daemon, req: &Request) -> String
Translate a parsed Request into a wire response (warnings + envelope + body, terminated by \n per the protocol spec — the caller adds the final blank line).
Request
\n