Skip to main content

begin_fetch_resolve

Function begin_fetch_resolve 

Source
pub fn begin_fetch_resolve(
    req: i64,
    status: i64,
    headers: &[(String, String)],
    body: &str,
) -> Option<RuntimeValue>
Expand description

Deliver request req with status/headers/body: record its per-request response, point the current-delivery cursor at it, and hand back its completion closure for the caller to invoke. None if the request is unknown or already FINAL (aborted/failed/delivered — the anti-double-delivery rule).