Skip to main content

dispatch

Function dispatch 

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

Dispatch a POST to a /hook/* path. Returns Some(outcome) for a known hook route — the listener writes outcome.body as the text/plain body, then runs outcome.deferred_ack — or None for an unknown path (→ 404).