docs(AGENTS.md): 更新项目概述文档

- 添加了多站点主机路由支持说明
- 补充了TCP/WebSocket代理类型信息
- 增加了QuickJS动态配置引擎描述
- 完善了静态文件服务MIME类型检测功能说明
- 新增负载均衡算法支持信息(轮询、最少连接、权重轮询、IP哈希、随机)
- 添加连接池和健康检查功能描述
- 扩展了三层中间件系统(全局、站点、路由级别)说明
```
This commit is contained in:
kingecg 2026-01-20 00:30:32 +08:00
parent 9332c66884
commit b56b493325
1 changed files with 12 additions and 4 deletions

View File

@ -5,10 +5,13 @@ This file provides essential information for agentic coding agents working on th
## Project Overview
rhttpd is a high-performance, configurable HTTP server written in Rust that supports:
- Multi-site hosting on a single port
- Multiple proxy types (reverse, forward, TCP)
- JavaScript dynamic configuration
- Static file serving with MIME type detection
- Multi-site hosting on a single port with host-based routing
- Multiple proxy types (reverse, forward, TCP/WebSocket)
- JavaScript dynamic configuration via QuickJS (rquickjs)
- Static file serving with automatic MIME type detection
- Load balancing with 5 algorithms (round_robin, least_connections, weighted_round_robin, ip_hash, random)
- Connection pooling and health checking
- Three-tier middleware system (global, site, route level)
## Build, Test, and Development Commands
@ -51,6 +54,11 @@ cargo doc --open
cargo clean
```
### Test Structure
- **Unit tests**: 3 tests in `src/config/tests.rs` (config serialization, default config, route pattern matching)
- **Integration tests**: 6 tests in `tests/integration_tests.rs` (static files, config loading, connection pool, load balancer, TCP proxy, TCP proxy stats)
- **Current status**: All tests pass (3 unit + 6 integration = 9 total)
## Code Style Guidelines
### General Rust Conventions