支持brotli和deflate压缩

This commit is contained in:
GoEdgeLab
2021-09-29 19:32:25 +08:00
parent ef5fa464b5
commit fa053eecf3
13 changed files with 490 additions and 37 deletions

View File

@@ -20,7 +20,8 @@ type HTTPWeb struct {
ResponseHeader string `field:"responseHeader"` // 响应Header配置
AccessLog string `field:"accessLog"` // 访问日志配置
Stat string `field:"stat"` // 统计配置
Gzip string `field:"gzip"` // Gzip配置
Gzip string `field:"gzip"` // Gzip配置v0.3.2启用)
Compression string `field:"compression"` // 压缩配置
Cache string `field:"cache"` // 缓存配置
Firewall string `field:"firewall"` // 防火墙设置
Locations string `field:"locations"` // 路由规则配置
@@ -50,7 +51,8 @@ type HTTPWebOperator struct {
ResponseHeader interface{} // 响应Header配置
AccessLog interface{} // 访问日志配置
Stat interface{} // 统计配置
Gzip interface{} // Gzip配置
Gzip interface{} // Gzip配置v0.3.2弃用)
Compression interface{} // 压缩配置
Cache interface{} // 缓存配置
Firewall interface{} // 防火墙设置
Locations interface{} // 路由规则配置