MCPcopy Index your code
hub / github.com/labstack/echo / HTTPSRedirect

Function HTTPSRedirect

middleware/redirect.go:52–54  ·  view source on GitHub ↗

HTTPSRedirect redirects http requests to https. For example, http://labstack.com will be redirect to https://labstack.com. Usage `Echo#Pre(HTTPSRedirect())`

()

Source from the content-addressed store, hash-verified

50//
51// Usage `Echo#Pre(HTTPSRedirect())`
52func HTTPSRedirect() echo.MiddlewareFunc {
53 return HTTPSRedirectWithConfig(RedirectHTTPSConfig)
54}
55
56// HTTPSRedirectWithConfig returns a HTTPS redirect middleware with config or panics on invalid configuration.
57func HTTPSRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {

Callers

nothing calls this directly

Calls 1

HTTPSRedirectWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…