Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CorsHandler ¶
type CorsHandler struct {
// contains filtered or unexported fields
}
func DefaultHandler ¶
func DefaultHandler() *CorsHandler
func NewCorsHandler ¶
func NewCorsHandler(options Options) *CorsHandler
func (*CorsHandler) CorsMiddleware ¶
func (c *CorsHandler) CorsMiddleware(innerHandler fasthttp.RequestHandler) fasthttp.RequestHandler
func (*CorsHandler) RefreshAllowOrigins ¶ added in v1.2.0
func (c *CorsHandler) RefreshAllowOrigins(allowedOrigins []string)
RefreshAllowOrigins
@desc: 支持运行时动态刷新 allowedOrigins 配置 @receiver c @para allowedOrigins
Click to show internal directories.
Click to hide internal directories.