compose

Function compose 

Source
pub fn compose(
    spec: &AggregationSpec,
    results: &[FragmentResult],
) -> ComposeResult
Expand description

Compose a response from fragment results.

This is the pure composition step: it takes the fragment results (already fetched + shaped by the plugin runtime) and combines them into a single JSON object. Fail-open fragments are skipped; fail-closed fragments cause the entire composition to fail.