executeHttpRules method

Future<RulesResult> executeHttpRules(
  1. HttpRulesContext context
)

Executes rules for HTTP events

Implementation

Future<RulesResult> executeHttpRules(HttpRulesContext context) async {
  try {
    // Convert context to map format
    final contextMap = context.toMap();

    // Execute all active rules with this context
    // Note: Rules filtering by event type should be handled at a higher level
    // For now, execute with the context directly
    return await executeRules(contextMap);
  } catch (e) {
    return RulesResult.error('HTTP rules execution failed: $e');
  }
}