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

Struct RedirectConfig

middleware/redirect.go:15–24  ·  view source on GitHub ↗

RedirectConfig defines the config for Redirect middleware.

Source from the content-addressed store, hash-verified

13
14// RedirectConfig defines the config for Redirect middleware.
15type RedirectConfig struct {
16 // Skipper defines a function to skip middleware.
17 Skipper
18
19 // Status code to be used when redirecting the request.
20 // Optional. Default value http.StatusMovedPermanently.
21 Code int
22
23 redirect redirectLogic
24}
25
26// redirectLogic represents a function that given a scheme, host and uri
27// can both: 1) determine if redirect is needed (will set ok accordingly) and

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected