Skip to main content

collect_route_chain_json

Function collect_route_chain_json 

Source
pub fn collect_route_chain_json(
    protocol: &WebUIProtocol,
    entry_id: &str,
    request_path: &str,
) -> Value
Expand description

Collect the matched route chain as a JSON array value.

Convenience wrapper around collect_route_chain that serializes the result into a serde_json::Value::Array ready for inclusion in a JSON partial response. Host servers in any language can include this directly without reimplementing the serialization.