Skip to main content

dispatch

Function dispatch 

Source
pub fn dispatch(
    path: &str,
    query: &str,
    body: &[u8],
    ctx: &Arc<CellServerCtx>,
) -> Option<String>
Expand description

Dispatch a POST to a /hook/* path. Returns Some(text) (possibly empty) for a known hook route — the listener writes it as the text/plain body — or None for an unknown path (→ 404).