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

Function HTTPSNonWWWRedirectWithConfig

middleware/redirect.go:85–88  ·  view source on GitHub ↗

HTTPSNonWWWRedirectWithConfig returns a HTTPS Non-WWW redirect middleware with config or panics on invalid configuration.

(config RedirectConfig)

Source from the content-addressed store, hash-verified

83
84// HTTPSNonWWWRedirectWithConfig returns a HTTPS Non-WWW redirect middleware with config or panics on invalid configuration.
85func HTTPSNonWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {
86 config.redirect = redirectNonHTTPSWWW
87 return toMiddlewareOrPanic(config)
88}
89
90// WWWRedirect redirects non www requests to www.
91// For example, http://labstack.com will be redirect to http://www.labstack.com.

Callers 1

HTTPSNonWWWRedirectFunction · 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…