Skip to main content

forward_request

Function forward_request 

Source
pub async fn forward_request(
    broker: &AnyBroker,
    info: MatchInfo,
    method: &str,
    params: Value,
) -> Result<PluginAdminResponse, PluginAdminForwardError>
Expand description

Forward an admin method invocation to the plugin via broker JSON-RPC. Caller passes pre-parsed JSON params + parses the returned PluginAdminResponse into the typed shape.