HTTPSRedirectWithConfig returns a HTTPS redirect middleware with config or panics on invalid configuration.
(config RedirectConfig)
| 55 | |
| 56 | // HTTPSRedirectWithConfig returns a HTTPS redirect middleware with config or panics on invalid configuration. |
| 57 | func HTTPSRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc { |
| 58 | config.redirect = redirectHTTPS |
| 59 | return toMiddlewareOrPanic(config) |
| 60 | } |
| 61 | |
| 62 | // HTTPSWWWRedirect redirects http requests to https www. |
| 63 | // For example, http://labstack.com will be redirect to https://www.labstack.com. |
no test coverage detected
searching dependent graphs…