使用 fasthttp 替代 net/http,实现 Phase 2 核心模块: - HTTP 服务器:fasthttp.Server 配置超时和连接限制 - 路由系统:fasthttp/router 基于 radix tree 匹配 - 静态文件服务:安全检查、索引文件支持 - 日志系统:zerolog 结构化日志 - 中间件框架:链式组合接口 - 虚拟主机管理:按 Host 头选择处理器 Co-Authored-By: Claude <noreply@anthropic.com>
21 lines
553 B
Modula-2
21 lines
553 B
Modula-2
module rua.plus/lolly
|
|
|
|
go 1.26.1
|
|
|
|
require (
|
|
github.com/fasthttp/router v1.5.4
|
|
github.com/rs/zerolog v1.35.0
|
|
github.com/valyala/fasthttp v1.69.0
|
|
gopkg.in/yaml.v3 v3.0.1
|
|
)
|
|
|
|
require (
|
|
github.com/andybalholm/brotli v1.2.0 // indirect
|
|
github.com/klauspost/compress v1.18.2 // indirect
|
|
github.com/mattn/go-colorable v0.1.14 // indirect
|
|
github.com/mattn/go-isatty v0.0.20 // indirect
|
|
github.com/savsgio/gotils v0.0.0-20240704082632-aef3928b8a38 // indirect
|
|
github.com/valyala/bytebufferpool v1.0.0 // indirect
|
|
golang.org/x/sys v0.39.0 // indirect
|
|
)
|