pub fn dispatch(
handler: &HttpApiHandler,
route: &Route,
body: &[u8],
) -> Result<Vec<u8>, Vec<u8>>Expand description
Dispatch a raw JSON body to the appropriate handler and return the JSON response bytes.
This is a convenience function for embedding in a minimal HTTP server without pulling in a framework dependency.