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

Function WWWRedirectWithConfig

middleware/redirect.go:99–102  ·  view source on GitHub ↗

WWWRedirectWithConfig returns a WWW redirect middleware with config or panics on invalid configuration.

(config RedirectConfig)

Source from the content-addressed store, hash-verified

97
98// WWWRedirectWithConfig returns a WWW redirect middleware with config or panics on invalid configuration.
99func WWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {
100 config.redirect = redirectWWW
101 return toMiddlewareOrPanic(config)
102}
103
104// NonWWWRedirect redirects www requests to non www.
105// For example, http://www.labstack.com will be redirect to http://labstack.com.

Callers 1

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