Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(workdir: &Path, req: &RpcRequest) -> Value
Expand description

Route one parsed request to its handler and build the response envelope. Pure of any socket concern; git I/O only. The single place that knows the method set, shared verbatim by the CLI-equivalent surface so list/doctor/path over RPC match the --format=json flags.