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

Function HTTPSWWWRedirect

middleware/redirect.go:66–68  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

64//
65// Usage `Echo#Pre(HTTPSWWWRedirect())`
66func HTTPSWWWRedirect() echo.MiddlewareFunc {
67 return HTTPSWWWRedirectWithConfig(RedirectHTTPSWWWConfig)
68}
69
70// HTTPSWWWRedirectWithConfig returns a HTTPS WWW redirect middleware with config or panics on invalid configuration.
71func HTTPSWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…