实现请求连接数等限制

This commit is contained in:
GoEdgeLab
2021-12-12 11:46:23 +08:00
parent 1fc7304721
commit 40d93c5b09
5 changed files with 97 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ type HTTPWeb struct {
Webp string `field:"webp"` // WebP配置
RemoteAddr string `field:"remoteAddr"` // 客户端IP配置
MergeSlashes uint8 `field:"mergeSlashes"` // 是否合并路径中的斜杠
RequestLimit string `field:"requestLimit"` // 请求限制
}
type HTTPWebOperator struct {
@@ -67,6 +68,7 @@ type HTTPWebOperator struct {
Webp interface{} // WebP配置
RemoteAddr interface{} // 客户端IP配置
MergeSlashes interface{} // 是否合并路径中的斜杠
RequestLimit interface{} // 请求限制
}
func NewHTTPWebOperator() *HTTPWebOperator {