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

Function HTTPSRedirectWithConfig

middleware/redirect.go:57–60  ·  view source on GitHub ↗

HTTPSRedirectWithConfig returns a HTTPS redirect middleware with config or panics on invalid configuration.

(config RedirectConfig)

Source from the content-addressed store, hash-verified

55
56// HTTPSRedirectWithConfig returns a HTTPS redirect middleware with config or panics on invalid configuration.
57func 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.

Callers 1

HTTPSRedirectFunction · 0.85

Calls 1

toMiddlewareOrPanicFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…