mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-03 20:40:25 +08:00
优化代码
This commit is contained in:
@@ -17,9 +17,10 @@ type HTTPWebConfig struct {
|
|||||||
Charset *HTTPCharsetConfig `yaml:"charset" json:"charset"` // 字符编码
|
Charset *HTTPCharsetConfig `yaml:"charset" json:"charset"` // 字符编码
|
||||||
Shutdown *HTTPShutdownConfig `yaml:"shutdown" json:"shutdown"` // 临时关闭配置
|
Shutdown *HTTPShutdownConfig `yaml:"shutdown" json:"shutdown"` // 临时关闭配置
|
||||||
Pages []*HTTPPageConfig `yaml:"pages" json:"pages"` // 特殊页面配置
|
Pages []*HTTPPageConfig `yaml:"pages" json:"pages"` // 特殊页面配置
|
||||||
|
|
||||||
RedirectToHttps *HTTPRedirectToHTTPSConfig `yaml:"redirectToHTTPS" json:"redirectToHTTPS"` // 是否自动跳转到Https
|
RedirectToHttps *HTTPRedirectToHTTPSConfig `yaml:"redirectToHTTPS" json:"redirectToHTTPS"` // 是否自动跳转到Https
|
||||||
Root *HTTPRootConfig `yaml:"root" json:"root"` // 资源根目录 TODO
|
Root *HTTPRootConfig `yaml:"root" json:"root"` // 资源根目录
|
||||||
MaxRequestBodySize string `yaml:"maxRequestBodySize" json:"maxRequestBodySize"` // 请求body最大尺寸 TODO 需要实现
|
//MaxRequestBodySize shared.SizeCapacity `yaml:"maxRequestBodySize" json:"maxRequestBodySize"` // 请求body最大尺寸 TODO 需要实现
|
||||||
AccessLogRef *HTTPAccessLogRef `yaml:"accessLog" json:"accessLog"` // 访问日志配置
|
AccessLogRef *HTTPAccessLogRef `yaml:"accessLog" json:"accessLog"` // 访问日志配置
|
||||||
StatRef *HTTPStatRef `yaml:"statRef" json:"statRef"` // 统计配置
|
StatRef *HTTPStatRef `yaml:"statRef" json:"statRef"` // 统计配置
|
||||||
Cache *HTTPCacheConfig `yaml:"cache" json:"cache"` // 缓存配置
|
Cache *HTTPCacheConfig `yaml:"cache" json:"cache"` // 缓存配置
|
||||||
|
|||||||
Reference in New Issue
Block a user