实现gzip

This commit is contained in:
刘祥超
2020-09-29 17:22:33 +08:00
parent a498f49451
commit c93a3e049a
10 changed files with 47 additions and 45 deletions

View File

@@ -16,7 +16,7 @@ type HTTPCachePolicy struct {
SkipCacheControlValues string `field:"skipCacheControlValues"` // 忽略的cache-control
SkipSetCookie uint8 `field:"skipSetCookie"` // 是否忽略Set-Cookie Header
EnableRequestCachePragma uint8 `field:"enableRequestCachePragma"` // 是否支持客户端的Pragma: no-cache
CondGroups string `field:"condGroups"` // 请求条件
Conds string `field:"conds"` // 请求条件
CreatedAt uint64 `field:"createdAt"` // 创建时间
State uint8 `field:"state"` // 状态
}
@@ -36,7 +36,7 @@ type HTTPCachePolicyOperator struct {
SkipCacheControlValues interface{} // 忽略的cache-control
SkipSetCookie interface{} // 是否忽略Set-Cookie Header
EnableRequestCachePragma interface{} // 是否支持客户端的Pragma: no-cache
CondGroups interface{} // 请求条件
Conds interface{} // 请求条件
CreatedAt interface{} // 创建时间
State interface{} // 状态
}