Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomMiddlewareFn ¶
func CustomNotAllowedFn ¶
func CustomNotAllowedFn() func(http.ResponseWriter)
Types ¶
type Cors ¶
type Cors struct {
AllowedOrigins []string `json:",default=[http://localhost:8888]"`
AllowMethods []string `json:",default=[GET,POST]"`
AllowHeaders []string `` /* 152-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.