RedirectConfig defines the config for Redirect middleware.
| 13 | |
| 14 | // RedirectConfig defines the config for Redirect middleware. |
| 15 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected