MCPcopy
hub / github.com/labstack/echo / NonWWWRedirect

Function NonWWWRedirect

middleware/redirect.go:108–110  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

106//
107// Usage `Echo#Pre(NonWWWRedirect())`
108func NonWWWRedirect() echo.MiddlewareFunc {
109 return NonWWWRedirectWithConfig(RedirectNonWWWConfig)
110}
111
112// NonWWWRedirectWithConfig returns a Non-WWW redirect middleware with config or panics on invalid configuration.
113func NonWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {

Callers

nothing calls this directly

Calls 1

NonWWWRedirectWithConfigFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…