refactor(proxy): modularize handlers.rs to reduce code duplication

Extract common request handling logic into dedicated modules:
- handler_config.rs: Usage parser configurations for each API type
- handler_context.rs: Request lifecycle context management
- response_processor.rs: Unified streaming/non-streaming response handling

Reduces handlers.rs from ~1130 lines to ~418 lines (-63%), eliminating
repeated initialization and response processing patterns across the
four API handlers (Claude, Codex Chat, Codex Responses, Gemini).
This commit is contained in:
Jason
2025-12-11 23:22:05 +08:00
parent 1926af4988
commit ebe2a665ae
5 changed files with 1057 additions and 1063 deletions
File diff suppressed because it is too large Load Diff