WWWRedirect redirects non www requests to www. For example, http://labstack.com will be redirect to http://www.labstack.com. Usage `Echo#Pre(WWWRedirect())`
()
| 92 | // |
| 93 | // Usage `Echo#Pre(WWWRedirect())` |
| 94 | func WWWRedirect() echo.MiddlewareFunc { |
| 95 | return WWWRedirectWithConfig(RedirectWWWConfig) |
| 96 | } |
| 97 | |
| 98 | // WWWRedirectWithConfig returns a WWW redirect middleware with config or panics on invalid configuration. |
| 99 | func WWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc { |
nothing calls this directly
no test coverage detected
searching dependent graphs…