Skip to main content

recover_request_id

Function recover_request_id 

Source
fn recover_request_id(line: &str) -> Option<NumberOrString>
Expand description

Best-effort recovery of the id field from a malformed JSON-RPC payload. Returns None when extraction fails so rmcp 3.x serializes the JSON-RPC specification’s canonical null error id.