Skip to main content

build_rpc_params

Function build_rpc_params 

Source
pub fn build_rpc_params(route: &FacadeRoute, body: &[u8], query: &str) -> Value
Expand description

Build RPC params JSON from the HTTP request body and route params.

For GET requests with query strings, extracts count parameter. For DELETE /api/agents/:pid, injects the PID into stop params. For POST endpoints, passes the body through.