Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForceHTTPS ¶
func ForceHTTPS(enable bool, hosts ...string) middleware.Middleware
ForceHTTPS is a middleware which redirects http:// requests to https://
func Hosts ¶
func Hosts(hosts map[string]string, enable bool) middleware.Middleware
Hosts is a middleware which redirects from one host to another. (e.g. https://www.foo.bar -> https://foo.bar)
func TrailingSlash ¶
func TrailingSlash() middleware.Middleware
TrailingSlash is a middleware which will redirect a matching request with a trailing slash in the path to the same endpoint without a trailing slash.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.