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

Function HTTPSWWWRedirectWithConfig

middleware/redirect.go:71–74  ·  view source on GitHub ↗

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

(config RedirectConfig)

Source from the content-addressed store, hash-verified

69
70// HTTPSWWWRedirectWithConfig returns a HTTPS WWW redirect middleware with config or panics on invalid configuration.
71func HTTPSWWWRedirectWithConfig(config RedirectConfig) echo.MiddlewareFunc {
72 config.redirect = redirectHTTPSWWW
73 return toMiddlewareOrPanic(config)
74}
75
76// HTTPSNonWWWRedirect redirects http requests to https non www.
77// For example, http://www.labstack.com will be redirect to https://labstack.com.

Callers 1

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