Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomMiddlewareFn ¶ added in v0.1.32
func CustomNotAllowedFn ¶ added in v0.1.32
func CustomNotAllowedFn() func(http.ResponseWriter)
Types ¶
type Cors ¶ added in v0.1.32
type Cors struct {
AllowedOrigins []string `json:",default=['http://localhost:8888']"`
AllowMethods []string `json:",default=['HEAD','GET','POST']"`
AllowHeaders []string `` /* 138-byte string literal not displayed */
ExposeHeaders []string `json:",default=['Content-Length','Access-Control-Allow-Origin','Access-Control-Allow-Headers']"`
MaxAgeHeaderVal int64 `json:",default=86400"`
}
Click to show internal directories.
Click to hide internal directories.