Skip to main content

dispatch_worker

Function dispatch_worker 

Source
pub async fn dispatch_worker<H: WorkerHandler>(
    handler: &H,
    ctx: &EnvelopeContext,
    body: &DecodedRequestBody,
) -> Result<(Vec<u8>, Option<Continuation>)>
Expand description

Dispatch a Worker request: deserialize, call handler, serialize response.