From 53f3397b7a7149345df2a2b7f081354020ba66bd Mon Sep 17 00:00:00 2001 From: Yuzerion Date: Tue, 14 Oct 2025 23:53:06 +0800 Subject: [PATCH] feat(rules): add post-request rules system with response manipulation (#160) * Add comprehensive post-request rules support for response phase * Enable response body, status, and header manipulation via set commands * Refactor command handlers to support both request and response phases * Implement response modifier system for post-request template execution * Support response-based rule matching with status and header checks * Add comprehensive benchmarks for matcher performance * Refactor authentication and proxying commands for unified error handling * Support negated conditions with ! * Enhance error handling, error formatting and validation * Routes: add `rule_file` field with rule preset support * Environment variable substitution: now supports variables without `GODOXY_` prefix * new conditions: * `on resp_header []` * `on status ` * new commands: * `require_auth` * `set resp_header