Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPSRedirector ¶
type HTTPSRedirector struct {
StatusCode int
}
HTTPSRedirector redirects to https
func (HTTPSRedirector) ServeHandler ¶
func (m HTTPSRedirector) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type NonWWWRedirector ¶
type NonWWWRedirector struct {
StatusCode int
}
NonWWWRedirector redirects to non-www
func (NonWWWRedirector) ServeHandler ¶
func (m NonWWWRedirector) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type Redirector ¶
Redirector redirects to target
func (Redirector) ServeHandler ¶
func (m Redirector) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
type WWWRedirector ¶
type WWWRedirector struct {
StatusCode int
}
WWWRedirector redirects to www
func (WWWRedirector) ServeHandler ¶
func (m WWWRedirector) ServeHandler(h http.Handler) http.Handler
ServeHandler implements middleware interface
Click to show internal directories.
Click to hide internal directories.