Skip to main content

dispatch_http_body

Function dispatch_http_body 

Source
pub fn dispatch_http_body(
    body: &str,
    kg: &RwLock<KnowledgeGraph>,
) -> Result<Option<Value>, String>
Expand description

Dispatch a Streamable-HTTP POST body, which may be a single JSON-RPC message or a batch array. Ok(None) means the body held only notifications (HTTP 202, empty body); Err means the body was not valid JSON.