Documentation
¶
Overview ¶
Package options 提供了初始化路由的参数对象
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CORS ¶
type CORS struct {
Origins []string
AllowHeaders []string
ExposedHeaders []string
MaxAge int
AllowCredentials bool
// contains filtered or unexported fields
}
func AllowedCORS ¶
func AllowedCORS() *CORS
type Options ¶
type Options struct {
CaseInsensitive bool
Lock bool
CORS *CORS
Interceptors *syntax.Interceptors
URLDomain string
RecoverFunc RecoverFunc
NotFound,
MethodNotAllowed http.Handler
}
func (*Options) HandleCORS ¶
type RecoverFunc ¶ added in v5.3.0
type RecoverFunc func(http.ResponseWriter, interface{})
Click to show internal directories.
Click to hide internal directories.