HTTPSNonWWWRedirect redirects http requests to https non www. For example, http://www.labstack.com will be redirect to https://labstack.com. Usage `Echo#Pre(HTTPSNonWWWRedirect())`
()
| 78 | // |
| 79 | // Usage `Echo#Pre(HTTPSNonWWWRedirect())` |
| 80 | func HTTPSNonWWWRedirect() echo.MiddlewareFunc { |
| 81 | return HTTPSNonWWWRedirectWithConfig(RedirectNonHTTPSWWWConfig) |
| 82 | } |
| 83 | |
| 84 | // HTTPSNonWWWRedirectWithConfig returns a HTTPS Non-WWW redirect middleware with config or panics on invalid configuration. |
| 85 | func HTTPSNonWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc { |
nothing calls this directly
no test coverage detected
searching dependent graphs…