Skip to main content

handle_evaluate_plan

Function handle_evaluate_plan 

Source
pub fn handle_evaluate_plan(
    kernel: &Arc<ChioKernel>,
    body: &[u8],
) -> Result<PlanEvaluationResponse, PlanHandlerError>
Expand description

Handler for POST /evaluate-plan.

Takes the raw request body as bytes, parses it into a PlanEvaluationRequest, and returns the kernel’s PlanEvaluationResponse. Denials are always Ok: the HTTP layer only errors out on malformed bodies.