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

Function WWWRedirect

middleware/redirect.go:94–96  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

92//
93// Usage `Echo#Pre(WWWRedirect())`
94func WWWRedirect() echo.MiddlewareFunc {
95 return WWWRedirectWithConfig(RedirectWWWConfig)
96}
97
98// WWWRedirectWithConfig returns a WWW redirect middleware with config or panics on invalid configuration.
99func WWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {

Callers

nothing calls this directly

Calls 1

WWWRedirectWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…