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

Function HTTPSNonWWWRedirect

middleware/redirect.go:80–82  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

78//
79// Usage `Echo#Pre(HTTPSNonWWWRedirect())`
80func HTTPSNonWWWRedirect() echo.MiddlewareFunc {
81 return HTTPSNonWWWRedirectWithConfig(RedirectNonHTTPSWWWConfig)
82}
83
84// HTTPSNonWWWRedirectWithConfig returns a HTTPS Non-WWW redirect middleware with config or panics on invalid configuration.
85func HTTPSNonWWWRedirectWithConfig(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…