secure

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlowHTTPDefender

type SlowHTTPDefender struct {
	// contains filtered or unexported fields
}

SlowHTTPDefender 防御慢速HTTP攻击的中间件集合

func NewSlowHTTPDefender

func NewSlowHTTPDefender(maxConns int, ratePerSec int, burstSize int, maxBodySize int64, readTimeout time.Duration) *SlowHTTPDefender

NewSlowHTTPDefender 创建新的防御中间件实例

func (*SlowHTTPDefender) DefenseMiddleware

func (s *SlowHTTPDefender) DefenseMiddleware() gin.HandlerFunc

DefenseMiddleware 防御中间件 - 组合所有防御策略

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL