HTTPSRedirect redirects http requests to https. For example, http://labstack.com will be redirect to https://labstack.com. Usage `Echo#Pre(HTTPSRedirect())`
()
| 50 | // |
| 51 | // Usage `Echo#Pre(HTTPSRedirect())` |
| 52 | func HTTPSRedirect() echo.MiddlewareFunc { |
| 53 | return HTTPSRedirectWithConfig(RedirectHTTPSConfig) |
| 54 | } |
| 55 | |
| 56 | // HTTPSRedirectWithConfig returns a HTTPS redirect middleware with config or panics on invalid configuration. |
| 57 | func HTTPSRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc { |
nothing calls this directly
no test coverage detected
searching dependent graphs…