Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SecureRedirectMiddleware ¶
type SecureRedirectMiddleware struct {
AllowedInsecurePaths map[string]struct{}
}
SecureRedirectMiddleware redirects the client to the identical URL served via HTTPS
func NewSecureRedirectMiddleware ¶
func NewSecureRedirectMiddleware(allowedInsecurepaths ...string) SecureRedirectMiddleware
func (SecureRedirectMiddleware) MiddlewareFunc ¶
func (srm SecureRedirectMiddleware) MiddlewareFunc(h rest.HandlerFunc) rest.HandlerFunc
Click to show internal directories.
Click to hide internal directories.