NonWWWRedirect redirects www requests to non www. For example, http://www.labstack.com will be redirect to http://labstack.com. Usage `Echo#Pre(NonWWWRedirect())`
()
| 106 | // |
| 107 | // Usage `Echo#Pre(NonWWWRedirect())` |
| 108 | func NonWWWRedirect() echo.MiddlewareFunc { |
| 109 | return NonWWWRedirectWithConfig(RedirectNonWWWConfig) |
| 110 | } |
| 111 | |
| 112 | // NonWWWRedirectWithConfig returns a Non-WWW redirect middleware with config or panics on invalid configuration. |
| 113 | func NonWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc { |
nothing calls this directly
no test coverage detected
searching dependent graphs…