HTTPSWWWRedirectWithConfig returns a HTTPS WWW redirect middleware with config or panics on invalid configuration.
(config RedirectConfig)
| 69 | |
| 70 | // HTTPSWWWRedirectWithConfig returns a HTTPS WWW redirect middleware with config or panics on invalid configuration. |
| 71 | func HTTPSWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc { |
| 72 | config.redirect = redirectHTTPSWWW |
| 73 | return toMiddlewareOrPanic(config) |
| 74 | } |
| 75 | |
| 76 | // HTTPSNonWWWRedirect redirects http requests to https non www. |
| 77 | // For example, http://www.labstack.com will be redirect to https://labstack.com. |
no test coverage detected
searching dependent graphs…