缓存设置中增加“支持分片内容”选项,用来支持Chunked内容

This commit is contained in:
刘祥超
2021-04-18 22:16:56 +08:00
parent 28c5a9425f
commit 80f6ffbcec

View File

@@ -20,6 +20,7 @@ type HTTPCacheRef struct {
SkipResponseCacheControlValues []string `yaml:"skipCacheControlValues" json:"skipCacheControlValues"` // 可以跳过的响应的Cache-Control值 SkipResponseCacheControlValues []string `yaml:"skipCacheControlValues" json:"skipCacheControlValues"` // 可以跳过的响应的Cache-Control值
SkipResponseSetCookie bool `yaml:"skipSetCookie" json:"skipSetCookie"` // 是否跳过响应的Set-Cookie Header SkipResponseSetCookie bool `yaml:"skipSetCookie" json:"skipSetCookie"` // 是否跳过响应的Set-Cookie Header
EnableRequestCachePragma bool `yaml:"enableRequestCachePragma" json:"enableRequestCachePragma"` // 是否支持客户端的Pragma: no-cache EnableRequestCachePragma bool `yaml:"enableRequestCachePragma" json:"enableRequestCachePragma"` // 是否支持客户端的Pragma: no-cache
AllowChunkedEncoding bool `yaml:"allowChunkedEncoding" json:"allowChunkedEncoding"` // 是否允许分片内容
Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 请求条件 Conds *shared.HTTPRequestCondsConfig `yaml:"conds" json:"conds"` // 请求条件