Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BodyDump ¶
func BodyDump() echo.MiddlewareFunc
BodyDump prints out the request body for debugging purpose
func CORS ¶
func CORS(cfg *Config) echo.MiddlewareFunc
CORS adds Cross-Origin Resource Sharing support
func DisableCache ¶
func DisableCache() echo.MiddlewareFunc
DisableCache sets the Cache-Control directive to no-store.
func Headers ¶
func Headers() echo.MiddlewareFunc
Headers adds general security headers for basic security measures
func SimpleCORS ¶
func SimpleCORS(allowOrigins []string) echo.MiddlewareFunc
SimpleCORS returns a CORS middleware with minimum configurations. Preflighted request is not allowed though.
Types ¶
Click to show internal directories.
Click to hide internal directories.