Documentation ¶
Index ¶
- func Cors(opts ...Option) middleware.Middleware
- type Option
- func AllowedHeaders(headers ...string) Option
- func AllowedMethods(methods ...string) Option
- func AllowedOrigins(origins ...string) Option
- func AppendAllowedHeaders(headers ...string) Option
- func AppendAllowedMethods(methods ...string) Option
- func AppendAllowedOrigins(origins ...string) Option
- func AppendPath(paths ...string) Option
- func Path(paths ...string) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Cors ¶
func Cors(opts ...Option) middleware.Middleware
Types ¶
type Option ¶
type Option func(*options)
func AllowedHeaders ¶ added in v2.15.4
func AllowedMethods ¶
func AllowedOrigins ¶
func AppendAllowedHeaders ¶ added in v2.15.4
func AppendAllowedMethods ¶
func AppendAllowedOrigins ¶
func AppendPath ¶
Click to show internal directories.
Click to hide internal directories.