mirror of
https://github.com/woodchen-ink/proxy-go.git
synced 2025-07-18 08:31:55 +08:00
- Introduced safe type conversion functions to prevent panics when accessing metrics data. - Updated MetricsHandler to utilize these functions for retrieving active requests, total requests, total errors, and average response time. - Enhanced error rate calculation to avoid division by zero. - Refactored buffer pool management in ProxyHandler for better memory handling. - Improved target URL determination logic based on file extensions for more flexible proxy behavior.